diff options
author | dg <dg@FreeBSD.org> | 1996-04-15 03:46:33 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-04-15 03:46:33 +0000 |
commit | 64edb8a1f64fad69d52cb6ebb82c141c0b87fd0f (patch) | |
tree | 23e9180b2017e68c98a6dd8cf7c6a16c1f71c157 /sys/netinet/tcp_timer.c | |
parent | 0604466becb0ff83c09af4b1a9fe1e9f9a73ec34 (diff) | |
download | FreeBSD-src-64edb8a1f64fad69d52cb6ebb82c141c0b87fd0f.zip FreeBSD-src-64edb8a1f64fad69d52cb6ebb82c141c0b87fd0f.tar.gz |
Two fixes from Rich Stevens:
1) Set the persist timer to help time-out connections in the CLOSING state.
2) Honor the keep-alive timer in the CLOSING state.
This fixes problems with connections getting "stuck" due to incompletion
of the final connection shutdown which can be a BIG problem on busy WWW
servers.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-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 f9c89b7..776d076 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 - * $Id: tcp_timer.c,v 1.14 1996/03/11 15:13:35 davidg Exp $ + * $Id: tcp_timer.c,v 1.15 1996/04/04 11:17:04 phk Exp $ */ #ifndef TUBA_INCLUDE @@ -320,7 +320,7 @@ tcp_timers(tp, timer) goto dropit; if ((always_keepalive || tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) && - tp->t_state <= TCPS_CLOSE_WAIT) { + tp->t_state <= TCPS_CLOSING) { if (tp->t_idle >= tcp_keepidle + tcp_maxidle) goto dropit; /* |