Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!techunix.BITNET!devil From: devil@techunix.BITNET (Gil Tene) Newsgroups: comp.unix.programmer Subject: Re: Problem with binding of socket addresses Message-ID: <9849@discus.technion.ac.il> Date: 6 Dec 90 17:56:11 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: devil%techunix.bitnet@lilac.berkeley.edu (Gil Tene) Organization: Technion, Israel Inst. Tech., Haifa Israel Lines: 20 In article epeterson@encore.com (Eric Peterson) wr ites: > . > . >Now, neither the client nor the server is running at the time I try to >restart the server, and there isn't a problem with address collisions >with another process. As far as I can tell, nothing else is using >this address. So why does bind() fail? I have also seen this happen on several systems, anything with an implemetation of sockets... I have no real solution, but it seems that "waiting a little bit", like about 30 second to a minute "fixes" this on most systems, and frees the bound address. -- Gil. -- -------------------------------------------------------------------- | Gil Tene "Some days it just doesn't pay | | devil@techunix.technion.ac.il to go to sleep in the morning." | --------------------------------------------------------------------