This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Closing TCP client sockets?
- From: "Alex Lindeijer" <Alex dot L at 3D-Perception dot com>
- To: "eCos Disuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 1 Mar 2010 15:05:51 +0100
- Subject: RE: [ECOS] Closing TCP client sockets?
- References: <c09652431002270400n6ba4dedamfca4d9b7c779c59c@mail.gmail.com> <97F68B92952DDA40A6494655C887603BD4290F@nw-ex-004.asplogon.com> <c09652431003010113q447b0c2am14c8a9b657c8816a@mail.gmail.com>
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
Alex Lindeijer | 3D perception AS
Senior System Designer
-----Original Message-----
From: Ãyvind Harboe [mailto:oyvind.harboe@zylin.com]
Sent: 1. mars 2010 10:13
To: Alex Lindeijer; eCos Disuss
Subject: Re: [ECOS] Closing TCP client sockets?
On Sun, Feb 28, 2010 at 10:05 PM, Alex Lindeijer
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