From 46bdd6e88295daa9a571893aee696bbafb334e9f Mon Sep 17 00:00:00 2001 From: tedu <> Date: Tue, 10 Jun 2014 16:35:42 +0000 Subject: stick with 16k buffers for a little while to avoid bufferbloat. atomicio writing out 64k in one direction will cause traffic in the other direction to stall until it's complete. discussion with deraadt --- src/usr.bin/nc/netcat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index 2861948dbf..76794df6c0 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.120 2014/06/10 16:23:07 tedu Exp $ */ +/* $OpenBSD: netcat.c,v 1.121 2014/06/10 16:35:42 tedu Exp $ */ /* * Copyright (c) 2001 Eric Jackson * @@ -733,7 +733,7 @@ void readwrite(int nfd) { struct pollfd pfd[2]; - unsigned char buf[64 * 1024]; + unsigned char buf[16 * 1024]; int n, wfd = fileno(stdin); int lfd = fileno(stdout); int plen; -- cgit v1.2.3-55-g6feb