socket already in use error on server

fatmck fatmck at 163.com
Thu Jun 20 05:38:09 CEST 2013


SO_REUSEADDR will not allow you listen twice at the same time. you will 
get an error of EADDRINUSE when you try to listen a second time on the 
same address.

SO_REUSEADDR only allow you to reuse the address after you close the 
socket immediatelly.

? 2013?06?20? 11:29, Neeraj Rai ??:
> I forgot to mention,
> SO_REUSEADDR is not an option for me as I don't want two instances 
> running at the same time.
>  thanks
> Neeraj
> Date: Thu, 20 Jun 2013 09:58:55 +0800
> From: fatmck <fatmck at 163.com <mailto:fatmck at 163.com>>
> To: libev at lists.schmorp.de <mailto:libev at lists.schmorp.de>
> Subject: Re: socket already in use error on server
> Message-ID: <51C261DF.10305 at 163.com <mailto:51C261DF.10305 at 163.com>>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> you can google SO_REUSEADDR socket option. this option will allow you
> reuse the address.

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


More information about the libev mailing list