From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23686 invoked by alias); 16 Jun 2005 23:45:35 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 23657 invoked by uid 22791); 16 Jun 2005 23:45:26 -0000 Received: from snvl-smtp1.trimble.com (HELO snvl-smtp1.trimble.com) (63.251.235.20) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 16 Jun 2005 23:45:26 +0000 Received: (qmail 22602 invoked by uid 501); 16 Jun 2005 16:45:24 -0700 Received: from 10.1.184.32 by snvl-smtp1.trimble.com (envelope-from , uid 107) with qmail-scanner-1.24 (clamdscan: 0.85.1/941. trophie: 7.510-1002/691/103431. spamassassin: 3.0.3. Clear:RC:1(10.1.184.32):. Processed in 0.016108 secs); 16 Jun 2005 23:45:24 -0000 Received: from unknown (HELO uss-am-xch-02.am.trimblecorp.net) (10.1.184.32) by snvl-smtp1.trimble.com with SMTP; 16 Jun 2005 16:45:24 -0700 Received: from uss-am-xch-03.am.trimblecorp.net ([10.1.137.33]) by uss-am-xch-02.am.trimblecorp.net with Microsoft SMTPSVC(5.0.2195.6713); Thu, 16 Jun 2005 16:45:24 -0700 Received: from 10.1.150.165 ([10.1.150.165]) by uss-am-xch-03.am.trimblecorp.net ([10.1.137.33]) via Exchange Front-End Server usd-am-web-01.am.trimblecorp.net ([10.1.1.144]) with Microsoft Exchange Server HTTP-DAV ; Thu, 16 Jun 2005 23:45:24 +0000 Received: from wlentz by usd-am-web-01.am.trimblecorp.net; 16 Jun 2005 16:45:23 -0700 From: Will Lentz To: Hans =?ISO-8859-1?Q?H=FCbner?= Cc: ecos In-Reply-To: <20050616183534.N69813@web.m68k.de> References: <1118875026.9020.21.camel@localhost.localdomain> <20050616083626.U69813@web.m68k.de> <1118936150.22661.16.camel@localhost.localdomain> <20050616174532.C69813@web.m68k.de> <1118937956.22661.26.camel@localhost.localdomain> <20050616183534.N69813@web.m68k.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Jun 2005 23:45:00 -0000 Message-Id: <1118965523.18774.24.camel@localhost.localdomain> Mime-Version: 1.0 Subject: Re: [ECOS] uipc_socket.c (and cyg_tcp_maxidle) X-SW-Source: 2005-06/txt/msg00129.txt.bz2 Hi Hans, No problem :-). I'm forwarding this on to the list so others know it helps. BTW - any comments from people? In uipc_socket.c soalloc() the zalloci() is assigned to "so", so it looks right to do the zfreei() on "so". Can my patch be applied to CVS? Thanks, Will On Thu, 2005-06-16 at 18:40 +0200, Hans H=FCbner wrote: > Hi Will, >=20 > thanks for the patch, really! I only started with eCos 2 weeks ago and I= =20 > stumbled across this very problem soon, as the default number of sockets = is so=20 > low and the bug seems to be triggered by socket shortage. With the patch= =20 > applied, my application seems to run much more stable and also the TCP=20 > counters now look plausible. You really made my day, thanks! >=20 > -Hans >=20 > On Thu, 16 Jun 2005, Will Lentz wrote: >=20 > > The patch does help me when I run out of sockets via the socket() call, > > but I'm wondering if the zfreei() in sodealloc() is getting the correct > > second argument. I'll dig into this deeper... > > > > Cheers, > > Will > > > > On Thu, 2005-06-16 at 17:46 +0200, Hans H=FCbner wrote: > >> On Thu, 16 Jun 2005, Will Lentz wrote: > >> > >>> zfreei() is a function, and doesn't directly modify its first argumen= t. > >>> But - it passes "so" as its second argument, and it modifies the value > >>> of so->so_zone through that. Looking at zfreei: > >> > >> Oops, it helps being awake while posting! Thanks for the patch, I'll = apply it > >> to my source tree immediately :) > >> > >> Cheers, > >> Hans > > > > > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss