]> granicus.if.org Git - python/commit
Issue 2550: extend test_socket.py to test SO_REUSEADDR semantics when bind() is calle...
authorTrent Nelson <trent.nelson@snakebite.org>
Fri, 4 Apr 2008 17:26:21 +0000 (17:26 +0000)
committerTrent Nelson <trent.nelson@snakebite.org>
Fri, 4 Apr 2008 17:26:21 +0000 (17:26 +0000)
commitb8e120c7c012053d57afbec1f877ce85e9a45c46
treef44ca467b3bca889b9432fd70f010eb7b8d8e386
parente71d8124c2ed15967ed92a16418107cf1a07cde0
Issue 2550: extend test_socket.py to test SO_REUSEADDR semantics when bind() is called on identical (host, port) combinations in two separate sockets.  This should raise an EADDRINUSE socket.error in all cases, irrespective of whether or not SO_REUSEADDR is set on the sockets.  However, with Windows, when SO_REUSEADDR is set on the sockets, no error is thrown (an error is thrown when the option isn't set), which results in an extremely wedged python process whenever accept() is called on either of the bound sockets.  I'm committing this test now to observe if it's only Windows that has this behaviour (via the buildbots).  Note: this WILL break all Windows buildbots for now; once I've observed the results on other platforms, I'll revert, then start looking into a patch.
Lib/test/test_socket.py