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


Groups > gnu.bash.bug > #14636 > unrolled thread

Re: bash sockets: printf \x0a does TCP fragmentation

Started bydirk+bash@testssl.sh
First post2018-09-22 12:57 +0200
Last post2018-09-22 12:57 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: bash sockets: printf \x0a does TCP fragmentation dirk+bash@testssl.sh - 2018-09-22 12:57 +0200

#14636 — Re: bash sockets: printf \x0a does TCP fragmentation

Fromdirk+bash@testssl.sh
Date2018-09-22 12:57 +0200
SubjectRe: bash sockets: printf \x0a does TCP fragmentation
Message-ID<mailman.1136.1537613852.1284.bug-bash@gnu.org>

On 9/22/18 12:30 PM, Ilkka Virta wrote:

> The coreutils printf seems to output 'foo\nbar\n' as a single write, though (unless
> it goes to the terminal, so the usual stdio buffering), so you might be able to use
> that.

thx. Might be not that portable but we'll see.

> In any case, if a TCP endpoint cares about getting full data packets within a single
> segment, I'd say it's broken.

fully agree. But unfortunately it just comforts us :-)

Keep in mind that the purpose of the tool is testing and if due to a bug it can't do
that, were the ones being blamed or we need to do really strange workarounds to avoid
'\x0a' in the first 8 bytes.


Dirk


[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web