From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27368 invoked by alias); 25 Sep 2007 13:41:53 -0000 Received: (qmail 27360 invoked by uid 22791); 25 Sep 2007 13:41:52 -0000 X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Sep 2007 13:41:48 +0000 Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Tue, 25 Sep 2007 06:41:36 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 534D82B0; Tue, 25 Sep 2007 06:41:36 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 355342AE; Tue, 25 Sep 2007 06:41:36 -0700 (PDT) Received: from mail-sj1-12.sj.broadcom.com (mail-sj1-12.sj.broadcom.com [10.16.128.215]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FSD24967; Tue, 25 Sep 2007 06:41:13 -0700 (PDT) Received: from NT-SJCA-0752.brcm.ad.broadcom.com (nt-sjca-0752 [10.16.192.222]) by mail-sj1-12.sj.broadcom.com (Postfix) with ESMTP id 278B620506; Tue, 25 Sep 2007 06:41:12 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 25 Sep 2007 13:41:00 -0000 Message-ID: References: <6F6F9AF887E54B47961CA0F5D1C228D102129720@shake.airdefense.net> From: "Alok Singh" To: "Alok Singh" , "John Mills" cc: ecos-discuss@ecos.sourceware.org X-WSS-ID: 6AE7CF9A3K46608323-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Network TCP Handler: stale socket disposal X-SW-Source: 2007-09/txt/msg00129.txt.bz2 John, Please post it in whatever form you deem as appropriate.=A0 Let us know whe= n you will be able to post it. BTW, I'm seeing a similar issue in my application.=A0 Sockets are exhausted= , and web is not accessible.=A0 Ping is going through. I've kept Max. numbe= r of sockets as 32 while configuring ecos. The strange thing is that the issue comes after a long period of inactivity= , i.e., no web activity. =A0=A0 Your patch will be useful. Regards, Alok =A0 ________________________________________ From: John Mills [mailto:JMills@airdefense.net]=20 Sent: Tuesday, September 25, 2007 6:56 PM To: Alok Singh Cc: ecos-discuss@ecos.sourceware.org Subject: RE: [ECOS] Re: Network TCP Handler: stale socket disposal All - I don't believe my patch was ever accepted. The eCos sources carry a cautio= nary note that such a 'hung' socket may have been placed on the net stack '= accept' queue, and may be in the process of acceptance by a user thread whi= ch could then block. I checked Linux and FreeBSD man pages on this. In Linux the blocked task wo= uld receive the next such incoming client and be unblocked. This is perfect= for my application. Neither OpenBSD nor FreeBSD man pages address the issu= e specifically. I didn't try to replicate the race condition myself. eCos now uses an older version of the BSD stack, and updating it looks sign= ificant - well over a month's work, maybe 3 or 4 based on the time the orig= inal author reported for his port. The patch solved a show-stopping problem with our application and seems to = cause no problems, so we're using it. Two other users tried the approach an= d wrote me off-list: in one case it resolved a problem, in the other it mad= e no difference (either way, as far as I know). I can share the patch on a = "no warranty" basis, but would prefer to post it appropriately rather than = circulating it randomly. =A0- John Mills -----Original Message----- From: ecos-discuss-owner@ecos.sourceware.org on behalf of Alok Singh Sent: Tue 9/25/2007 8:20 AM To: johnmills@speakeasy.net Cc: ecos-discuss@ecos.sourceware.org Subject: [ECOS] Re: Network TCP Handler: stale socket disposal Hi John, What is the state of this issue? Is your patch accepted? Let us know the status, so that we can also pick up the changes. Regards, Alok -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss