[issue19875] test_getsockaddrarg occasional failure

John W. O'Brien report at bugs.python.org
Wed Dec 4 16:25:12 CET 2013


John W. O'Brien added the comment:

For reference:

CPython code comments showing that this may be an anticipated problem:

http://hg.python.org/cpython/file/0830670a9d9d/Lib/test/support/__init__.py#l562

An example of another project that seems to have tackled this problem in the way neologix suggests:

http://openvswitch.org/pipermail/dev/2013-April/026430.html

I am inclined to frame this issue as a choice between LBYL (try to predict, subject to the race, whether a port will be available) and EAFP (blindly try a few random high ports before inferring failure).

----------
nosy: +neirbowj

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


More information about the Python-bugs-list mailing list