This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: accept() FreeBSD hangs when out of resources
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Tad <ecos_removethispart at ds3switch dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 11 Jun 2007 23:52:36 +0200
- Subject: Re: [ECOS] accept() FreeBSD hangs when out of resources
- References: <466DC965.5010803@ds3switch.com>
On Mon, Jun 11, 2007 at 02:15:01PM -0800, Tad wrote:
> accept() won't return and won't timeout (>12hrs) when listen() indicates
> a new connection, if out of sockets/file-descriptors and all TCP
> connections are in ESTABLISHED state.
Where exactly is it blocked. Please could you provide a call stack.
The new fd and socket descriptor appears to be allocated in the fileio
code before the network stack accept function is called. And i don't
see how they can block when out of resources.
> My other FreeBSD bug posts to bugzilla seem to be ignored, so I won't
> bother sending this one there.
The often are, since most of us don't automatically get notification
of there creation and I in particular only poll it once a month or
less.
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