From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,aadbcce298c661e4 X-Google-Attributes: gidfee84,public From: /WB/ Subject: Re: Error: port already open Date: 1999/11/08 Message-ID: <3826150A.3639817D@slashwb.org>#1/1 X-Deja-AN: 545710423 Content-Transfer-Encoding: 7bit References: <7vabt1$dtt$1@nnrp1.deja.com> <7vae9u$djg$1@nserve1.acs.ucalgary.ca> <7vcseu$7iv$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 942019951 24.5.220.132 (Sun, 07 Nov 1999 16:12:31 PST) Organization: @Home Network MIME-Version: 1.0 Reply-To: WB@slashwb.org NNTP-Posting-Date: Sun, 07 Nov 1999 16:12:31 PST Newsgroups: comp.unix.osf.osf1 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.