From nobody@FreeBSD.ORG Tue Apr 13 12:40:27 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B1A6215740; Tue, 13 Apr 1999 12:40:27 -0700 (PDT)
Message-Id: <19990413194027.B1A6215740@hub.freebsd.org>
Date: Tue, 13 Apr 1999 12:40:27 -0700 (PDT)
From: lucas@negaverse.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Sockets die in LAST_ACK and FIN_WAIT_1 states, stay indefinitely until reboot, slows machine to halt
X-Send-Pr-Version: www-1.0

>Number:         11115
>Category:       kern
>Synopsis:       Sockets die in LAST_ACK and FIN_WAIT_1 states, stay indefinitely until reboot, slows machine to halt
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 12:40:00 PDT 1999
>Closed-Date:    Sun Jun 11 09:48:13 PDT 2000
>Last-Modified:  Sun Jun 11 09:50:58 PDT 2000
>Originator:     Lucas Madar
>Release:        2.2.8-STABLE
>Organization:
DALnet IRC network
>Environment:
FreeBSD irc.xxxxxxx.xxx 2.2.8-STABLE FreeBSD 2.2.8-STABLE #0: Fri Mar 26 22:16:23 GMT 1999     lucas@irc.xxxxxxxx.xxx:/usr/src/sys/compile/IRC  i386
>Description:
On a machine running a daemon with over 2000 sockets open and being used at the same time, some sockets which were outgoing connections linger indefinitely. When the daemon with the open sockets is terminated, and all sockets are closed, these sockets still sit indefinitely. Network traffic for a daemon with many open sockets slows to a crawl. Eventually, the machine is unusable and has to be rebooted (usually this takes about two days).

from ulimit -a:
open files                  16424

>How-To-Repeat:
Run a daemon on your machine which accepts over 500,000 connections per day, and attempts to make two connections for each incoming connection? :)
>Fix:
Unknown.. reboot!

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jlemon 
State-Changed-When: Sun Jun 11 09:48:13 PDT 2000 
State-Changed-Why:  
This has likely been fixed by the LAST_ACK patch in the 3.x, 4.x, 5.x 
branches as of June 8th. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=11115 
>Unformatted:
