This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: bind() shouldn't return EAGAIN for an error
- From: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- To: <kenkyee at excite dot com>, <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 27 Sep 2012 05:06:49 +0200
- Subject: RE: [ECOS] bind() shouldn't return EAGAIN for an error
- References: <20120924172129.16356@web003.roc2.bluetie.com>
Hi Ken,
> AFAIK, bind() should never return EAGAIN for an error:
> http://homepages.cwi.nl/~aeb/linux/man2html/man2/bind.2.html
In the BSD manpages, EAGAIN means, you are out of memory, see for instance:
http://www.unix.com/man-page/FreeBSD/2/bind/
There is a configurable memory pool for variable size objects in the bsd stack.
I'd suggest you should increase CYGPKG_NET_MEMPOOL_SIZE
and check that too:
CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE should be 1 (default)
Regards
Bernd Edlinger.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss