summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2016-09-03 14:53:18 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2016-09-03 14:53:18 +0000
commitac18df436faafd6e78aea808cd91f8a871d9c2e3 (patch)
tree3256653c91f9197e411cefc92f30c4465fbd1e20
parent7774c0402007338d565b6f1bc4cfc26ee59daaa6 (diff)
Increase the socket buffer size limit from 256 KB to 2 MB. This
will speed up TCP connections. If the value is too high, users may run out of mbufs. This should be less likely as we have increased the mbuf cluster limit. OK claudio@ deraadt@
-rw-r--r--sys/sys/socketvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index f63927159cc..25f6320ebe3 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: socketvar.h,v 1.62 2016/08/25 14:13:19 bluhm Exp $ */
+/* $OpenBSD: socketvar.h,v 1.63 2016/09/03 14:53:17 bluhm Exp $ */
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
/*-
@@ -116,7 +116,7 @@ struct socket {
short sb_flags; /* flags, see below */
u_short sb_timeo; /* timeout for read/write */
} so_rcv, so_snd;
-#define SB_MAX (256*1024) /* default for max chars in sockbuf */
+#define SB_MAX (2*1024*1024) /* default for max chars in sockbuf */
#define SB_WAIT 0x04 /* someone is waiting for data/space */
#define SB_SEL 0x08 /* someone is selecting */
#define SB_ASYNC 0x10 /* ASYNC I/O, need signals */