Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14713

Re: bash sockets: printf \x0a does TCP fragmentation

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: bash sockets: printf \x0a does TCP fragmentation
Date 2018-10-11 15:11 -0400
Message-ID <mailman.2033.1539285126.1284.bug-bash@gnu.org> (permalink)
References (4 earlier) <714e1ba0-0052-2f2b-676d-778f2b7129c1@testssl.sh> <7769.1537667711@jinx.noi.kre.to> <24434.1537694402@jinx.noi.kre.to> <20180923114607811266911@bob.proulx.com> <151ee01d-66a5-b315-9688-bd1e28b7c587@testssl.sh>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: bash sockets: printf \x0a does TCP fragmentation Chet Ramey <chet.ramey@case.edu> - 2018-10-11 15:11 -0400

csiph-web