From: Andrew Lunn <andrew@lunn.ch>
To: Tad Artis <tad_artis@alum.mit.edu>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] atHTTP hangs connections on select() errors
Date: Mon, 11 Jun 2007 22:42:00 -0000 [thread overview]
Message-ID: <20070611215609.GH26816@lunn.ch> (raw)
In-Reply-To: <466DD126.9020609@alum.mit.edu>
On Mon, Jun 11, 2007 at 02:48:06PM -0800, Tad Artis wrote:
> athttp often locks up resources and never frees them if select() returns
> an error.
>
> A robust implementation of athttp will want to change the main
> cyg_httpd_daemon listen() loop so that
> cyg_httpd_close_unused_sockets(listener); is called regardless of the
> return value from the listen() call. Otherwise, errors from listen()
> will prevent all connections (possibly causing the errors) from ever
> timing out and being shut down. The system will quickly run out of
> sockets, as all will be left in the ESTABLISHED state. Not theoretical,
> fairly easy to get listen() to return errors.
Could you provide a patch for this?
Thanks
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2007-06-11 21:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 21:56 Tad Artis
2007-06-11 22:42 ` Andrew Lunn [this message]
2007-06-11 23:00 Tad
2007-06-11 23:06 ` Gary Thomas
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=20070611215609.GH26816@lunn.ch \
--to=andrew@lunn.ch \
--cc=ecos-discuss@sources.redhat.com \
--cc=tad_artis@alum.mit.edu \
/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).