[ECOS] bind() shouldn't return EAGAIN for an error

Bernd Edlinger bernd.edlinger@hotmail.de
Thu Sep 27 03:07:00 GMT 2012


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



More information about the Ecos-discuss mailing list