Bug 14722

Summary: TCP connections hangs in FIN_WAIT_2 for >30min
Product: Base System Reporter: br <br>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-STABLE   
Hardware: Any   
OS: Any   

Description br 1999-11-05 14:40:01 UTC
A TCP connection hangs in FIN_WAIT_2 after the server process died.
The remote machine keeps sending TCP packets so that the TCP socket
won't go away. The socket is blocked, and the server cannot restart.

Captured output from tcpdump follows.
A is the local host, where the server died.
B is the remote host, where the connection originated.

15:19:28.851890 A.11110 > B.1720: . ack 1 win 4128 (ttl 246, id 102)
15:19:28.851931 B.1720 > A.11110: . ack 1 win 16680 (DF) (ttl 64, id 59322)
15:20:28.890800 A.11110 > B.1720: . ack 1 win 4128 (ttl 246, id 103)
15:20:28.890830 B.1720 > A.11110: . ack 1 win 16680 (DF) (ttl 64, id 59673)
15:21:28.936971 A.11110 > B.1720: . ack 1 win 4128 (ttl 246, id 104)
15:21:28.936995 B.1720 > A.11110: . ack 1 win 16680 (DF) (ttl 64, id 60213)

The server process died at 14:47.
Comment 1 iedowse freebsd_committer freebsd_triage 2001-12-02 20:06:27 UTC
State Changed
From-To: open->feedback


Hi, does this problem still exist? If so, it would be useful if you 
could provide a few details about what FreeBSD is doing wrong. The 
issue of the server refusing to restart can be solved with the 
SO_REUSEADDR socket option.
Comment 2 iedowse freebsd_committer freebsd_triage 2002-03-02 17:22:34 UTC
State Changed
From-To: feedback->closed


Feedback timeout.