Loss window MUST be one segment, per draft-floyd-incr-init-win-03.

This commit is contained in:
thorpej 1998-06-02 17:22:26 +00:00
parent edc01ec330
commit c296923d2f
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}