diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 3bcd6c1bdc6e..107e34d4f0d5 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_timer.c,v 1.39 1998/05/11 20:52:18 thorpej Exp $ */ +/* $NetBSD: tcp_timer.c,v 1.40 1998/06/02 17:22:26 thorpej Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -296,7 +296,7 @@ tcp_timers(tp, timer) if (tp->t_state == TCPS_SYN_SENT) tp->t_flags |= TF_SYN_REXMT; /* - * Close the congestion window down to the initial window + * Close the congestion window down to one segment * (we'll open it by one segment for each ack we get). * Since we probably have a window's worth of unacked * data accumulated, this "slow start" keeps us from @@ -323,7 +323,7 @@ tcp_timers(tp, timer) u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_segsz; if (win < 2) win = 2; - tp->snd_cwnd = TCP_INITIAL_WINDOW(tcp_init_win, tp->t_segsz); + tp->snd_cwnd = tp->t_segsz; tp->snd_ssthresh = win * tp->t_segsz; tp->t_dupacks = 0; }