socket already in use error on server

fatmck fatmck at 163.com
Thu Jun 20 03:58:55 CEST 2013


you can google SO_REUSEADDR socket option. this option will allow you 
reuse the address.


? 2013?06?20? 09:54, Neeraj Rai ??:
> 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
>
>
> _______________________________________________
> libev mailing list
> libev at lists.schmorp.de
> http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20130620/9c6efeaa/attachment-0001.html>


More information about the libev mailing list