On Sun, 18 Dec 2022 at 17:01, Theo Buehler <[email protected]> wrote: > > This is the remaining bit of mpf's recent netcat diff. The commit log > shows that it was bumped to 64k in the past, but that was promptly > reverted due to concerns of buffer bloat caused by atomicio blocking > traffic in the other direction. > > I don't know if things are different enough 8 years later that this can > be reconsidered. Not my area, just throwing it out there so it doesn't > get lost. >
If there's a push to reduce bufferbloat, then maybe have a look at this too: https://datatracker.ietf.org/doc/id/draft-gettys-iw10-considered-harmful-00.html Maybe revert IW from 10 to 4 :-) ? > Index: netcat.c > =================================================================== > RCS file: /cvs/src/usr.bin/nc/netcat.c,v > retrieving revision 1.224 > diff -u -p -r1.224 netcat.c > --- netcat.c 18 Dec 2022 12:53:18 -0000 1.224 > +++ netcat.c 18 Dec 2022 12:54:58 -0000 > @@ -66,7 +66,7 @@ > #define POLL_NETOUT 1 > #define POLL_NETIN 2 > #define POLL_STDOUT 3 > -#define BUFSIZE 16384 > +#define BUFSIZE 65536 > > #define TLS_NOVERIFY (1 << 1) > #define TLS_NONAME (1 << 2) >
