|
ECS Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ecs] Linux "holding on" to closed sockets Neil Cherry Fri, 21 Nov 2003 12:08:58 -0500 |
Mark Gilmore wrote:
> Per various sites (and my experience):
> Upon closing a used socket, Linux does not free the IP/port for around
> 60 seconds.
> During this time, attempts to bind to the same IP/port will result in a
> "address in use" error.
> When restarting ECS, this is a MAJOR pain, as it cannot bind to it's
> primary web-server port
> (127.0.0.1:2080).
> Might anyone know how to force Linux to release the blasted thing ?
> Thanks,
I don't think you can (don't trust me on this). What is happening is
Linux is supposed to be waiting for something from the other side
(what other side?) so it can close proper. I've seen those with other
daemons. The one thing I do is to sleep for n amount of time and
retry. Very annoying!
--
Linux Home Automation Neil Cherry ncherry@comcast.net
http://home.comcast.net/~ncherry/ (Text only)
http://linuxha.sourceforge.net/ (SourceForge)
http://hcs.sourceforge.net/ (HCS II)
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects