[erlang-bugs] socket reuseaddr not functional on windows

hume npx humeafo@REDACTED
Sun Oct 14 05:54:59 CEST 2012


using reuseaddr option while do UDP socket  processing, it is not
functional. I searched the question on google, it seems that it's caused by
inet_drv.c line 5611, in fact win32 support reuseaddr, should the following

#ifdef __WIN32__
    continue;  /* Bjorn says */
#else

part be commented?

case INET_OPT_REUSEADDR:
#ifdef __WIN32__
    continue;  /* Bjorn says */
#else
    type = SO_REUSEADDR;
    DEBUGF(("inet_set_opts(%ld): s=%d, SO_REUSEADDR=%d\r\n",
    (long)desc->port, desc->s,ival));
    break;
#endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20121014/2bf3a3bd/attachment.htm>


More information about the erlang-bugs mailing list