From owner-freebsd-bugs Mon Oct 16 20:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9749137B4D7 for ; Mon, 16 Oct 2000 20:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA75044; Mon, 16 Oct 2000 20:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 16 Oct 2000 20:30:03 -0700 (PDT) Message-Id: <200010170330.UAA75044@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ryan Younce Subject: Re: kern/21791: Hang on FIN_WAIT_2 Reply-To: Ryan Younce Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/21791; it has been noted by GNATS. From: Ryan Younce To: freebsd-gnats-submit@FreeBSD.org, jd@dynw.com Cc: Subject: Re: kern/21791: Hang on FIN_WAIT_2 Date: Mon, 16 Oct 2000 23:24:22 -0400 I don't know for certain if that patch will work. Here's a context one generated via diff -r -c. Sorry about that. Ryan *** tcp_timer.c.orig Mon Oct 2 18:28:49 2000 --- tcp_timer.c Mon Oct 16 22:31:55 2000 *************** *** 201,210 **** /* * 2 MSL timeout in shutdown went off. If we're closed but * still waiting for peer to close and connection has been idle ! * too long, or if 2MSL time is up from TIME_WAIT, delete connection ! * control block. Otherwise, check again in a bit. */ ! if (tp->t_state != TCPS_TIME_WAIT && (ticks - tp->t_rcvtime) <= tcp_maxidle) callout_reset(tp->tt_2msl, tcp_keepintvl, tcp_timer_2msl, tp); --- 201,210 ---- /* * 2 MSL timeout in shutdown went off. If we're closed but * still waiting for peer to close and connection has been idle ! * too long, or if 2MSL time is up from TIME_WAIT or FIN_WAIT_2, ! * delete connection control block. Otherwise, check again in a bit. */ ! if (tp->t_state < TCPS_FIN_WAIT_2 && (ticks - tp->t_rcvtime) <= tcp_maxidle) callout_reset(tp->tt_2msl, tcp_keepintvl, tcp_timer_2msl, tp); -- Ryan Younce ryan@manunkind.org http://www.manunkind.org/~ryan "B can be thought of as C without types; more accurately, it is BCPL squeezed into 8K bytes of memory and filtered through Thompson's brain." --Dennis Ritchie, "The Development of the C Language", 1993 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message