Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: /WB/ <WB@slashwb.org>
Subject: Re: Error: port already open
Date: 1999/11/08	[thread overview]
Message-ID: <3826150A.3639817D@slashwb.org> (raw)
In-Reply-To: 7vcseu$7iv$1@nnrp1.deja.com

How long is the servers down before you restart them. It sounds more
like the the port is in TIME_WAIT, depending on the server bind mode (ie
the SO_REUSEADDR flag for the socket) the server will not be able to
re-bind to the port before the port becomes totally free again...

/WB/

Uncle Jeff wrote:
> 
> In article <7vae9u$djg$1@nserve1.acs.ucalgary.ca>,
>   patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) wrote:
> > No, this understanding is wrong. Placing a port name in /etc/services
> > has no effect apart from giving that port a convenient symbolic name,
> > which every individual program is free to use (or ignore). The only
> > way
> > to actually reserve a port number is to bind() to it - in which case
> > it will not be available for other processes.
> 
> Interesting. :*|
> 
> The bind-lock would only be active while the process is running, though,
> correct? If I understand then, we'd need to have a 'sleeper' process
> bind the port while the server is down, and then kill that process
> before restarting the server.
> --
>  ( >- ------------------------------------- -< )
>  /~\           THKS :?) Uncle Jeff           /~\
> |  \)      jeffhowie@NOJUNKmy-deja.com      (/  |
>  \_|_ Linux, the choice of a GNU generation _|_/
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.



  reply	other threads:[~1999-11-08  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-28  4:00 Error: port already open Uncle Jeff
1999-10-28  4:00 ` Serguei Patchkovskii
1999-10-29  4:00   ` Uncle Jeff
1999-11-08  5:00     ` /WB/ [this message]
1999-11-08  5:00       ` Uncle Jeff
1999-11-09  5:00         ` /WB/
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox