[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

Antoine Pitrou report at bugs.python.org
Tue May 4 00:08:49 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Roundup ate my code. I meant:

>>> s = socket.create_connection(("python.org", 80), source_address=("192.168.0.2", 0))
>>> s.getsockname()
('192.168.0.2', 40496)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8576>
_______________________________________


More information about the Python-bugs-list mailing list