From owner-freebsd-net@FreeBSD.ORG Tue Jun 14 13:09:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A51FE16A41C for ; Tue, 14 Jun 2005 13:09:16 +0000 (GMT) (envelope-from mlsmith@mitre.org) Received: from smtp-bedford-dr.mitre.org (smtpproxy2.mitre.org [192.160.51.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04F4A43D58 for ; Tue, 14 Jun 2005 13:09:15 +0000 (GMT) (envelope-from mlsmith@mitre.org) Received: from smtp-bedford-dr.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford-dr.mitre.org (8.11.6/8.11.6) with SMTP id j5ED9FM15881 for ; Tue, 14 Jun 2005 09:09:15 -0400 Received: from smtp-bedford-dr.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford-dr.mitre.org (Postfix) with ESMTP id 9076B4F8E1 for ; Tue, 14 Jun 2005 09:09:14 -0400 (EDT) Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtp-bedford-dr.mitre.org (8.11.6/8.11.6) with ESMTP id j5ED9D615794 for ; Tue, 14 Jun 2005 09:09:13 -0400 Received: from mm112487-2k.mitre.org (128.29.50.27) by mailhub1.mitre.org with SMTP id 18450196; Tue, 14 Jun 2005 09:09:08 -0400 Message-ID: <06e401c570e2$3f342930$1b321d80@MITRE.ORG> From: "PSI, Mike Smith" To: Date: Tue, 14 Jun 2005 09:09:07 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Advice needed on running idiotic test for client X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 13:09:16 -0000 Hey all, Need some probably fundamental help with an admitted idiotic "test" from = a client. Is there any way to close a TCP connection such that all = resources are immediately freed? Standard operation: Sys B Listen -> Sys A connect -> Sys B Accept -> Sys = A Send -> Sys B Receive -> Sys A Close -> Sys B Close (still listening). = Very small packets. Maximum connect rate is less than 50 or so per = minute, often much less. No problems at all. Idiot test requested by client - Same as above but see how fast 10,000 = can be sent (will never come close to happening in the real world). Problem: Because among other things I am using let's say minimal and = ancient computer power, I hit a DOS state after about 3700 connects. I = know (think?) I am running out of mbufs because of the 2MSL delay on the = close. Is there any way to close a TCP connection and have all resources = immediately freed? I KNOW this is really violating all the data = integrity features of TCP, but this is an idiotic test remember. And in = this case I am not concerned about data integrety. I have noticed that = LINUX has a TCP_LINGER2 option that can at least minimize the closing = delay (freeing resources) but I haven't found anything comparable in = FreeBSD. Since this is probably fundamental and of little or no interest to = anyone designing or operating even a minimally competent system, = off-list response is probably best if someone would be so kind as to = help me out. Mike Smith