This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Closing TCP client sockets?


On Sun, Feb 28, 2010 at 10:05 PM, Alex Lindeijer
<Alex.L@3d-perception.com> wrote:
> Hi
> Yes that is
> int on=1;
> Â Â Â Â if (setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0)
> Â Â Â Â Â Â Â Â{
> Â Â Â Â Â Â Â Â Âperror("setsockopt(SO_REUSEADDR) failed");
> Â Â Â Â Â Â Â Â}
> If I use that I get Âthe following ASSERT:
> "Recorded alarm not in the future! Starved network thread?"
> I also get the "address already in use" erro also when changing
> IP address ie Ânot using the same IP address

The first thing I would have a look at is to  tinker with the ecos.ecc settings
to provide more of something: memory, number of sockets, file handles,
scatter gather list length, etc.

Embedded TCP/IP stacks generally have a lot of limits that are tweaked quite
low by default to reduce out of the box resource usage, eCos is no different.


-- 
Ãyvind Harboe

Visit us at Embedded World, March 2nd-4th. IS2T's stand, HALL 10 - 118
http://www.zylin.com/events_embeddedworld.html

US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]