socket already in use error on server

Neeraj Rai rneeraj at yahoo.com
Thu Jun 20 03:54:19 CEST 2013


Hi,

I am having trouble with my server restarts.
If a client has connected, even if it later disconnects, the listener socket is put in TIME_WAIT state on shutdown.
I have to wait a while to restart.

setting so_linger didn't seem to help either. I am closing both ends and stopping watchers before exit.
Has anyone run into this ?

thanks
Neeraj  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20130619/33ed50a5/attachment.html>


More information about the libev mailing list