On 7/27/07, boblusebob@... <boblusebob@...> wrote:
> If you just run the Server, terminate the
> server and run it again without involving the client, then there is no
> 'address already in use' and it apparantly binds just fine.. On Linux, this
> happens on both Python and Jython. This does not happen on Windows.
When a server is started and is terminated without any client
connectios, the next invocation of the server would just be fine.
However, once a client connection is accepted and closed, the server
socket will be in TIME_WAIT (among other possible states) for some
time. It is during this window that SO_REUSEADDR determines whether
bind/listen will succeed or not.