From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16999 invoked by alias); 12 Jun 2007 22:46:10 -0000 Received: (qmail 16989 invoked by uid 22791); 12 Jun 2007 22:46:10 -0000 X-Spam-Check-By: sourceware.org Received: from alnrmhc15.comcast.net (HELO alnrmhc15.comcast.net) (204.127.225.95) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Jun 2007 22:46:08 +0000 Received: from [192.168.1.200] (c-67-188-0-30.hsd1.ca.comcast.net[67.188.0.30]) by comcast.net (alnrmhc15) with ESMTP id <20070612224606b150017sd4e>; Tue, 12 Jun 2007 22:46:07 +0000 Message-ID: <466F301B.9040601@ds3switch.com> Date: Wed, 13 Jun 2007 00:09:00 -0000 From: Tad User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: ecos-discuss@sources.redhat.com References: <466DDDCF.1040506@ds3switch.com> <20070611230045.GI26816@lunn.ch> <466DE575.9010406@ds3switch.com> <20070612035104.GK26816@lunn.ch> <20070612035744.GL26816@lunn.ch> <466F2FC7.8060704@ds3switch.com> In-Reply-To: <466F2FC7.8060704@ds3switch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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] "Fix" for atHTTP and HTTP socket requirements with mozilla POSTS X-SW-Source: 2007-06/txt/msg00136.txt.bz2 "Fix" for hanging atHTTP client requests on out-of-sockets. Background: It's somewhat known that atHTTP will "pause" for several minutes when running out of sockets. One reason this can happen is that mozilla opens a new TCP connection for each POST or chunked-transfer(I think) GET, which requires a new socket for each. The remnant sockets eventually (300sec default) are shutdown by atHTTP and then enter TCP TIME_WAIT state which is 2xMSL or something like another 2-4 minutes -- but that's a long time. BTW, this assumes you don't hit the bug where accept() hangs when out of sockets. See solution in a couple days for that. "Solution:" Mozilla (on XP) appears to get smart after opening about 10 TCP connections, and starts FIN,ACK ing them to shut them down so atHTTP doesn't have to sit in TIME_WAIT or atHTTP timeout on the old connections. So, setting CYGPKG_NET_MAXSOCKETS to something > 10x # of users + a couple for sockets other eCos apps have open will allow "unlimited" mozilla (XP) client requests without any timeouts. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss