bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash sockets: printf \x0a does TCP fragmentation


From: Chet Ramey
Subject: Re: bash sockets: printf \x0a does TCP fragmentation
Date: Thu, 11 Oct 2018 15:11:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 10/11/18 12:53 PM, Dirk Wetter wrote:

> This all -- including cat -- sounded reasonable. But it seems using sockets 
> the internal printf
> as opposed to the one from coreutils is still causing fragmentation other 
> than expected with
> strace  PoC:

Bash line-buffers stdout, so newlines cause writes and packet
fragmentation.

http://lists.gnu.org/archive/html/bug-bash/2018-09/msg00086.html
http://lists.gnu.org/archive/html/bug-bash/2018-09/msg00095.html
http://lists.gnu.org/archive/html/bug-bash/2018-09/msg00102.html
http://lists.gnu.org/archive/html/bug-bash/2018-09/msg00118.html

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]