[issue11812] transient socket failure to connect to 'localhost'

Jesús Cea Avión report at bugs.python.org
Tue Nov 8 13:28:47 CET 2011


Jesús Cea Avión <jcea at jcea.es> added the comment:

Uhmmmm.... doing a fake connection in the teardown would be problematic if the socket is reused for something else in the meantime. The kernel is suppose to keep the socket in the "not reuse" state for a while, but...

I am seeing too liberal mixing of support.HOST and "localhost". That should be unified.

I need consensus about making test.support.HOST = "127.0.0.1". What do you think?

test_ftplib needs love too, but changes are far more intrusive there. I will wait until you approve changes to telnetlib.py.

Please, review attached changeset.

----------
hgrepos: +89

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


More information about the Python-bugs-list mailing list