diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-03-08 03:49:59 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-03-08 03:49:59 +0000 |
commit | 9b09c9e18ad5231f2173323c6bcd2f1df26a4f81 (patch) | |
tree | a4bcf043e4a4ef0f97c84a071e496a6c55ba1af2 /sys/netinet/tcp_subr.c | |
parent | bfd6cab07ebbe219670eb8f3c2903f2290a508c2 (diff) |
use timeout(9) to schedule TCP timers. this avoid traversing all
tcp connections during tcp_slowtimo. apdapted from thorpej@netbsd.org
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 77e5d4def27..7c4667ca83c 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.59 2002/03/02 00:44:52 provos Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.60 2002/03/08 03:49:58 provos Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -670,6 +670,7 @@ tcp_close(struct tcpcb *tp) /* free the reassembly queue, if any */ tcp_freeq(tp); + tcp_canceltimers(tp); TCP_CLEAR_DELACK(tp); #ifdef TCP_SACK |