[erlang-bugs] socket reuseaddr not functional on windows

hume npx <>
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 */

part be commented?

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

More information about the erlang-bugs mailing list