diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-14 08:09:50 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-14 08:09:50 +0000 |
commit | e692d5b0bcad666384ad6c8b490ca226f124d224 (patch) | |
tree | 77f4180492a7a93c89ca7aa38aa41feb9c11b0ff | |
parent | 15ae69d15c64087acfc7703e278b2e72a98b44f2 (diff) |
From Lite2; skip slow start calculation if socket state is listen
-rw-r--r-- | sys/netinet/tcp_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 73885ccf618..1b2cfaf3680 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_timer.c,v 1.2 1996/03/03 22:30:48 niklas Exp $ */ +/* $OpenBSD: tcp_timer.c,v 1.3 1996/03/14 08:09:49 tholo Exp $ */ /* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */ /* @@ -117,7 +117,7 @@ tcp_slowtimo() for (; ip != (struct inpcb *)&tcbtable.inpt_queue; ip = ipnxt) { ipnxt = ip->inp_queue.cqe_next; tp = intotcpcb(ip); - if (tp == 0) + if (tp == 0 || tp->t_state == TCPS_LISTEN) continue; for (i = 0; i < TCPT_NTIMERS; i++) { if (tp->t_timer[i] && --tp->t_timer[i] == 0) { |