From owner-freebsd-hackers Tue Apr 16 10:34:15 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA26675 for hackers-outgoing; Tue, 16 Apr 1996 10:34:15 -0700 (PDT) Received: from kitten.mcs.com (Kitten.mcs.com [192.160.127.90]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id KAA26670 for ; Tue, 16 Apr 1996 10:34:12 -0700 (PDT) Received: from venus.mcs.com (root@Venus.mcs.com [192.160.127.92]) by kitten.mcs.com (8.7.5/8.6.9) with SMTP id MAA04296 for ; Tue, 16 Apr 1996 12:33:36 -0500 (CDT) Received: by venus.mcs.com (/\==/\ Smail3.1.28.1 #28.5) id ; Tue, 16 Apr 96 12:33 CDT Message-Id: Subject: Silly socket question To: hackers@freebsd.org Date: Tue, 16 Apr 1996 12:33:34 -0500 (CDT) From: "Karl Denninger, MCSNet" X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am having a rough time with a funny application here. We have a TCP application (it has to be stream oriented as we need sequencing for encryption reasons) that receives LOTS of short transactions. After a while, we end up with lots of sockets in this state: tcp 0 0 192.160.127.126.50000 192.160.127.85.1946 CLOSE_WAIT tcp 0 0 192.160.127.126.50000 192.160.127.85.1945 CLOSE_WAIT tcp 0 0 192.160.127.126.50000 192.160.127.85.1944 CLOSE_WAIT tcp 0 0 192.160.127.126.50000 192.160.127.85.1940 CLOSE_WAIT In fact, hundreds of them. This eventually overloads the system and it dies for processing transactions on that port. I tried turning off LINGER, but didn't expect that to work (there's no data in the queue). No effect (as expected). Is there some option that can be passed to the stack to tell the system that I don't *care* about any buffered metadata and that it needs to release the socket resources *right now*? The parent process which accepted these connections (but closed them) is still around, but the child (which inherited them) is long gone. Ideas? -- -- Karl Denninger (karl@MCS.Net)| MCSNet - The Finest Internet Connectivity Modem: [+1 312 248-0900] | T1 from $600 monthly; speeds to DS-3 available Voice: [+1 312 803-MCS1] | 21 Chicagoland POPs, ISDN, 28.8, much more Fax: [+1 312 248-9865] | Email to "info@mcs.net" WWW: http://www.mcs.net/ ISDN - Get it here TODAY! | Home of Chicago's only FULL Clarinet feed!