diff options
author | 2004-10-06 14:33:07 +0000 | |
---|---|---|
committer | 2004-10-06 14:33:07 +0000 | |
commit | ad394c51ba219c36e8b4bd67db2f17f802b1c574 (patch) | |
tree | 2e2753b16a6e7bd100e5462bd1ad4bf7af17bec8 /sys/netinet/tcp_output.c | |
parent | Unbreak tcpdump on the carp interface; variable shadowing pointed out by (diff) | |
download | wireguard-openbsd-ad394c51ba219c36e8b4bd67db2f17f802b1c574.tar.xz wireguard-openbsd-ad394c51ba219c36e8b4bd67db2f17f802b1c574.zip |
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/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 4 |
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)) { |