#1088: SO_REUSEADDR should not be used on windows
-----------------------------------+----------------------------------------
Reporter:
kris...@ccpgames.com | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: wsgiserver | Keywords:
-----------------------------------+----------------------------------------
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
--
Ticket URL: <
http://www.cherrypy.org/ticket/1088>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework