Bind : address already in use on solaris
I have a SunOS5.9 mac. I have a server process which binds to a specfic port 3000 and to localhost.
The sequence of server execution is like this,
socket opened, bind to port 3000
close() the socket
during this process the bind fails.
I have verified that the server closes the socket completely(return value of close is 0).
Is this hapening because of the kernel has not completely given up the previous socket resources.
Does changing the tcp_time_wait_interval to 29s will it help...
how to clear the socket resources after the user has closed it.
Thanks for the reply.
it really solved the problem.
|All times are GMT -5. The time now is 12:32 PM.|