public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Tad <ecos_removethispart@ds3switch.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] "Fix" for atHTTP and HTTP socket requirements with mozilla POSTS
Date: Wed, 13 Jun 2007 06:56:00 -0000	[thread overview]
Message-ID: <466F3152.7030105@ds3switch.com> (raw)

<Reposted to get correct thread>

"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

             reply	other threads:[~2007-06-12 22:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13  6:56 Tad [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-06-15 12:51 Tad
2007-06-11 23:15 [ECOS] Re: accept() FreeBSD hangs when out of resources Tad
2007-06-12  3:51 ` Andrew Lunn
2007-06-12  4:05   ` [ECOS] " Tad
2007-06-12 11:06     ` Andrew Lunn
2007-06-12 11:19       ` Andrew Lunn
     [not found]         ` <466F2FC7.8060704@ds3switch.com>
2007-06-13  0:09           ` [ECOS] "Fix" for atHTTP and HTTP socket requirements with mozilla POSTS Tad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=466F3152.7030105@ds3switch.com \
    --to=ecos_removethispart@ds3switch.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).