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?


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

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