Issue #1088 new

SO_REUSEADDR should not be used on windows

Anonymous created an issue

The standard idiom of creating a socket with SO_REUSEADDR before binding, should not be done on windows. The meaning of this socket option is quite different on windows. On windows, the default behaviour is as though SO_REUSEADDR had been specified on unix. If this flag is specified, it is possible to bind to a port that is actually in use. See for example this discussion from twisted: http://twistedmatrix.com/trac/ticket/1151

And this documentaton on the flag and its windows specific colleagues: http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx

Reported by kristjan@ccpgames.com

Comments (1)

  1. Log in to comment