Problem with binding of socket addresses

Gil Tene devil at techunix.BITNET
Fri Dec 7 04:56:11 AEST 1990


In article <epeterso.660257641 at houligan> epeterson at 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 at techunix.technion.ac.il   to go to sleep in the morning."  |
--------------------------------------------------------------------



More information about the Comp.unix.programmer mailing list