[issue2550] SO_REUSEADDR doesn't have the same semantics on Windows as on Unix

Trent Nelson report at bugs.python.org
Sun Apr 6 23:25:03 CEST 2008


Trent Nelson <tnelson at onresolve.com> added the comment:

I've attached another patch that fixes test_support.bind_port() as well 
as a bunch of files that used that method.  The new implementation 
always uses an ephemeral port in order to elicit an unused port for 
subsequent binding.  Tested on Windows 32-bit & x64 and FreeBSD 6.2.  
Would like to apply sooner rather than later unless anyone has any 
objections as it'll fix my two Windows buildbots that are on the same 
machine from both hanging if they test asynchat at the same time (which 
happens more often than you'd think).

Added file: http://bugs.python.org/file9966/trunk.2550.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2550>
__________________________________


More information about the Python-bugs-list mailing list