summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortedu <>2014-06-10 16:35:42 +0000
committertedu <>2014-06-10 16:35:42 +0000
commitfafa3335394aa027a6470c05c4318af6b627e892 (patch)
tree7f9c92c9b9a8d374cf72e76bbabc6c1cd27377ef /src
parent7958ee57e3a5acbbe3ef2dfccbbbd44a71aa0690 (diff)
downloadopenbsd-fafa3335394aa027a6470c05c4318af6b627e892.tar.gz
openbsd-fafa3335394aa027a6470c05c4318af6b627e892.tar.bz2
openbsd-fafa3335394aa027a6470c05c4318af6b627e892.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/nc/netcat.c4
1 files 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 @@
1/* $OpenBSD: netcat.c,v 1.120 2014/06/10 16:23:07 tedu Exp $ */ 1/* $OpenBSD: netcat.c,v 1.121 2014/06/10 16:35:42 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * 4 *
@@ -733,7 +733,7 @@ void
733readwrite(int nfd) 733readwrite(int nfd)
734{ 734{
735 struct pollfd pfd[2]; 735 struct pollfd pfd[2];
736 unsigned char buf[64 * 1024]; 736 unsigned char buf[16 * 1024];
737 int n, wfd = fileno(stdin); 737 int n, wfd = fileno(stdin);
738 int lfd = fileno(stdout); 738 int lfd = fileno(stdout);
739 int plen; 739 int plen;