From 9b09c9e18ad5231f2173323c6bcd2f1df26a4f81 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Fri, 8 Mar 2002 03:49:59 +0000 Subject: use timeout(9) to schedule TCP timers. this avoid traversing all tcp connections during tcp_slowtimo. apdapted from thorpej@netbsd.org --- sys/netinet/tcp_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netinet/tcp_subr.c') 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 -- cgit v1.2.3