summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-10-06 14:33:08 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-10-06 14:33:08 +0000
commita901e558c50c9ff294cae7a61346c8d1c933a71e (patch)
treee82cfc7486dc2b0ebaa7beed3a128b31a9d40002 /sys/netinet
parent7b5b863da2ace34d46f64fa7ef8988fb07928f12 (diff)
set the congestion window to two segments (instead of only one), this matches
the window size he have when entering the established state. ok deraadt@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 8cd394c8db1..3d738e01fa5 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.72 2004/09/16 13:14:28 markus Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.73 2004/10/06 14:33:07 markus Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -248,7 +248,7 @@ tcp_output(tp)
* expected to clock out any data we send --
* slow start to get ack "clock" running again.
*/
- tp->snd_cwnd = tp->t_maxseg;
+ tp->snd_cwnd = 2 * tp->t_maxseg;
/* remember 'idle' for next invocation of tcp_output */
if (idle && soissending(so)) {