This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: transient socket failure to connect to 'localhost'
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jcea Nosy List: ezio.melotti, jackdied, jcea, neologix, pitrou, python-dev, terry.reedy, vstinner
Priority: normal Keywords: patch

Created on 2011-04-09 21:56 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tests_host.patch vstinner, 2011-06-24 00:06 review
2b155a6d25bb.diff jcea, 2011-11-08 12:30 review
b93657b239a5.diff jcea, 2011-11-08 14:19 test_telnetlib.py review
Repositories containing patches
https://hg.jcea.es/cpython-2011/#transienttsocketfailure-issue11812
Messages (35)
msg133429 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-04-09 21:56
http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2920/steps/test/logs/stdio

test test_telnetlib failed -- Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_telnetlib.py", line 45, in testBasic
    telnet = telnetlib.Telnet(HOST, self.port)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\telnetlib.py", line 209, in __init__
    self.open(host, port, timeout)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\telnetlib.py", line 225, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 407, in create_connection
    raise err
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 398, in create_connection
    sock.connect(sa)
socket.error: [Errno 10061] No connection could be made because the target machine actively refused it
msg133868 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-04-15 19:39
What do you propose for a fix?
1. Find a more reliable host to test with?
2. Change test to catch the error and convert failure to a skip?
3. Both ;-?
4. Something else?

Something like 2 would seem like a good idea for all tests dependent on a resource out of developers' control.
msg133872 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-04-15 20:32
> 1. Find a more reliable host to test with?

Well, if you find a more reliable host than "localhost", why not ;-)
msg138878 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-06-23 23:11
With a bit of searching, HOST == support.HOST == 'localhost'. Looking at the traceback, it is socket that fails, not telnetlib or its test. Hence the clearer title. 

I am still curious what you propose: catch and skip or something else? For Windows, I consider a one-time event like this a routine random glitch to be ignored at least until it repeats ;-).
msg138879 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-23 23:21
> With a bit of searching, HOST == support.HOST == 'localhost'.
> Looking at the traceback, it is socket that fails, not telnetlib
> or its test.

I only saw the failure on test_telnetlib, not in other tests using sockets. I think that this issue is specific to test_telnetlib (even not telnetlib). It is maybe a race condition: the code to wait until the server is active is maybe not correct. GeneralTests.setUp() waits until the server has called serv.listen(5). I don't know if the server must be waiting in serv.accept() on Windows (using Cygwin?). Last instruction of GeneralTests.setUp() is a time.sleep(.1): ugly synchronization hack to workaround a race conditon??
msg138880 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-23 23:33
Does the failure occur on other buildbots? If not, it's maybe something specific to this Windows Seven: a local firewall or something like that?

Can we use start 127.0.0.1 instead of "localhost"? I don't know if it would change anything.

Note: the TCP server of test_telnetlib doesn't use SO_REUSEADDR whereas it starts/stops very quickly. We may be something like:

serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
msg138881 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-23 23:38
> I only saw the failure on test_telnetlib, not in other tests
> using sockets.

Oh, the last failure of the buildbot "x86 Windows7 3.x" is on test_ftplib, not test_telnetlib!

======================================================================
ERROR: testTimeoutConnect (test.test_ftplib.TestTimeouts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_ftplib.py", line 948, in testTimeoutConnect
    ftp.connect(HOST, timeout=30)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 148, in connect
    source_address=self.source_address)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 407, in create_connection
    raise err
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 398, in create_connection
    sock.connect(sa)
socket.timeout: timed out

======================================================================
ERROR: testTimeoutDefault (test.test_ftplib.TestTimeouts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_ftplib.py", line 920, in testTimeoutDefault
    ftp = ftplib.FTP("localhost")
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 114, in __init__
    self.connect(host)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 148, in connect
    source_address=self.source_address)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 407, in create_connection
    raise err
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 398, in create_connection
    sock.connect(sa)
socket.timeout: timed out

======================================================================
ERROR: testTimeoutDifferentOrder (test.test_ftplib.TestTimeouts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_ftplib.py", line 955, in testTimeoutDifferentOrder
    ftp.connect(HOST)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 148, in connect
    source_address=self.source_address)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 407, in create_connection
    raise err
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 398, in create_connection
    sock.connect(sa)
socket.timeout: timed out

======================================================================
ERROR: testTimeoutDirectAccess (test.test_ftplib.TestTimeouts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_ftplib.py", line 963, in testTimeoutDirectAccess
    ftp.connect(HOST)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 148, in connect
    source_address=self.source_address)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 407, in create_connection
    raise err
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 398, in create_connection
    sock.connect(sa)
socket.timeout: timed out

======================================================================
ERROR: testTimeoutNone (test.test_ftplib.TestTimeouts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_ftplib.py", line 932, in testTimeoutNone
    ftp = ftplib.FTP("localhost", timeout=None)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 114, in __init__
    self.connect(host)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\ftplib.py", line 148, in connect
    source_address=self.source_address)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 407, in create_connection
    raise err
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\socket.py", line 398, in create_connection
    sock.connect(sa)
socket.error: [Errno 10061] No connection could be made because the target machine actively refused it
msg138882 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-24 00:06
Some tests of test_ftplib and test_telnetlib use HOST or directly 'localhost' instead of getting the host from the server socket. About the test_ftplib failures, only the tests using explicitly 'localhost' do fail.

Attached patch reads the name of the server socket instead of using HOST or 'localhost'.

You would like to try it on Linux by changing support.bind_port() function: replace the default host value from HOST to '127.0.0.2'. If you do that, test_ftplib and test_telnetlib fail without my patch, and pass with my patch.

By the way, why do we use 'localhost' instead of '127.0.0.1' for support.HOST? '127.0.0.1' doesn't depend on the DNS configuration of the host (especially its "hosts" file, even Windows has such file).
msg138888 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-06-24 05:58
Perhaps Michael or Ezio have an idea of whether 'reason' or 'happenstance' is the answer to your questions.
msg143821 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-09-10 00:20
I am seeing this failure from time to time in OpenIndiana buildbots. For instance http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.x/builds/1751/steps/test/logs/stdio

Seems a clear race condition.
msg145170 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-10-08 14:30
> Attached patch reads the name of the server socket instead of using
> HOST or 'localhost'.

> By the way, why do we use 'localhost' instead of '127.0.0.1' for
> support.HOST? '127.0.0.1' doesn't depend on the DNS configuration of
> the host (especially its "hosts" file, even Windows has such file).

This might be a good idea.
Apparently, Windows 7 doesn't use its hosts file (yes, it does have one) to resolve 'localhost', but its DNS resolver, see http://serverfault.com/questions/4689/windows-7-localhost-name-resolution-is-handled-within-dns-itself-why

Depending on the DNS setup, it could lead to a latency which might explain such failures.

> Seems a clear race condition.

The code looks correct: a threading.Event is set by the server once it called listen(), point at which incoming connections should be queued (SYN/ACK is sent before accept()).
So I'd bet either on resolution delay (on Unix /etc/nsswitch.conf), or an overloaded machine.
msg146707 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-10-31 16:31
Any progress on this?. I still see frequent OpenIndiana Buildbots failures because of this. Is anybody activelly working on this?. Should I get involved?
msg146713 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-10-31 16:58
> Is anybody activelly working on this?.

I don't think so.

> Should I get involved?

Sure, if you have access to a machine on which you can reliably reproduce the problem, it'll be much easier. I would bet on a deficient name resolution service: using 127.0.0.1 instead of 'localhost' for support.HOST could help. It could also be due to a firewall setting (e.g., drop incoming connections requests when the connection rate is too high).
msg146968 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-11-03 20:02
> Sure, if you have access to a machine on which you can
> reliably reproduce the problem, it'll be much easier.

I explain a reliable method to reproduce this issue on Linux (it may work on other OSes) in msg138882.
msg146985 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-11-03 21:55
> I explain a reliable method to reproduce this issue on Linux

It's a way to reproduce the symptom (i.e. connection refused because you're trying to connect to 127.0.0.2 while the server is listening on 127.0.0.1), but not the cause: if the server binds to 'localhost' and the client connects to 'localhost', it should work.
But like you, I think it could be a good idea to change support.HOST to 127.0.0.1, to rule out name resolution delay (especially since Windows 7 doens't use its host file to resolve 'localhost' anymore, but calls the DNS solver).
msg147270 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 03:07
Checking the testsuite source code, I see several issues:

The server thread only waits for 3 seconds for the connection. If a connection is not created before 3 seconds, the server suicides and when the connection is tried, it will fail. This probably explain why the problem is sporadic and seems to depend of name resolving. If the DNS resolver is "slow", we have a problem.

Also, the event is signaled twice in the server, and the client does a wait and a clear. If the thread scheduler is lucky, the server would signal twice and THEN the client would wait (and return inmediatelly) and clear, completelly missing the second signaling and hanging the client in the next wait (in the teardown).

So, I would propose:

1. Use 127.0.0.1 instead of "localhost".

2. Delete the timeout in the server. I don't see the purpose of it, except be sure the server thread dies eventually. Lets configure the thread as "daemon", and don't mind with the thread join.

3. Cleanup the Event signaling.

4. "time.sleep(0.1)?"... Please... :-)

Opinions?.

I assign the issue to myself. Please, provide feedback and I will create & apply the patch.

I have seen this issue too in 2.7, in my buildbots (OpenIndiana).

You can reproduce the issue easily changing the "self.sock.settimeout(3)" to "self.sock.settimeout(0.01)", for instance.

PS: I see use of test.support.HOST in the testuite, but that attribute is not documented anywhere. :-??

"""
Python 3.2.2 (default, Sep  5 2011, 01:49:10) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from test import support
>>> support.HOST
'localhost'
"""

Should it be 127.0.0.1, or not use at all, since it is not documented?.

PPS: I only checked telnetlib, not ftplib.
msg147271 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 03:11
About the "support.HOST", changing from "localhost" to "127.0.0.1" could be problematic is servers without IPv4 support (servers IPv6 only). I guess this is a theorical problem so far, and that when we find this issue the exception would be pretty obvious...

Opinions?.

What about documenting "support.HOST"?
msg147276 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-11-08 08:15
> The server thread only waits for 3 seconds for the connection. If a connection is not created before 3 seconds, the server suicides and when the connection is tried, it will fail. This probably explain why the problem is sporadic and seems to depend of name resolving. If the DNS resolver is "slow", we have a problem.

Indeed, but 3 seconds to resolve localhost is not "slow", it's really
that the name lookup service is broken.

> So, I would propose:
>
> 1. Use 127.0.0.1 instead of "localhost".
>

As noted, this might break on IPv6-only hosts. Not sure this will be a
problem, though. Another, less intrusive solution has been suggested
by Victor: use the address returned by getsockname() instead of
support.HOST when connecting.

> 2. Delete the timeout in the server. I don't see the purpose of it, except be sure the server thread dies eventually. Lets configure the thread as "daemon", and don't mind with the thread join.
>

Sounds like a recipe for masking bugs. Having a dangling thread is
probably not a good idea. If 1) is not enough to fix this failure,
then you can first try to increase this to a "huge" value (e.g. 30
seconds).

> 3. Cleanup the Event signaling.
>

OK.

> 4. "time.sleep(0.1)?"... Please... :-)
>

Yeah, this should be removed.

> I have seen this issue too in 2.7, in my buildbots (OpenIndiana).
>

Please check your name resolution setting :-)
msg147283 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 11:47
Charles-François:

The only way for the server thread being around would be if the test fails badly, not calling teardown (I would do a fake tcp connection to the server in the teardown, followed by a thread.join). In this case, the thread (being "daemon") will die when the tests are done anyway, and the test will be showed as fail in the buildbots, so somebody should take care of it. I would not mask anything.

About using getsockname(), the bind would bind to all IPs of the machine, including real network interfaces. I rather prefer to keep the bind private and not accesible from the external network :-).

I really think that ipv6-only hosts are a non-issue just now. And the failure would be quite self-evident. In Solaris I get this exception: "socket.error: [Errno 126] Cannot assign requested address". Quite clear.

Anyway, we can keep using "localhost", but just delete the socket timeout in the server.

About the nameresolution speed, it is actually happening. Could be, too, a busy machine. I know that some buildbots are running inside a virtual machine, sometimes with little real RAM and possibly paging a lot. The fact is that the 3 second delay is actually happening, and I don't think that solution should be to increase the timeout. That only mask the issue.
msg147284 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 12:00
> Anyway, we can keep using "localhost", but just delete the socket
> timeout in the server.

Please don't. Any problem might then hang the whole test suite.
You can bump it up if you want, though.

> About using getsockname(), the bind would bind to all IPs of the 
> machine, including real network interfaces.

How so?

>>> sock = socket.socket()
>>> sock.bind(("localhost", 0))
>>> sock.getsockname()
('127.0.0.1', 60919)
msg147287 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 12:28
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.
msg147288 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 12:42
Antoine:

Deleting the socket timeout doesn't hang the test if we set the thread to "daemon" and do not do a thread.join() (unneeded in the normal situation, since garbage collecting the test instance will collect the thread too). If you don't like this, I can do a fake connection in teardown (look the proposed changeset). The problem with that is OS port reuse. Quite safe, but only "quite".

If thread.join had a timeout , we could wait for a while and if the thread is still active, do a fake connection and another join. A bit overkill for a test, I guess :-).

I stand corrected about getsockname(). I am neutral to it, although we are still involving DNS. I would rather prefer a direct "127.0.0.1".
msg147289 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 12:47
> Please, review attached changeset.

Doesn't look acceptable to me.
msg147290 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 12:50
> If thread.join had a timeout , we could wait for a while and if the
> thread is still active, do a fake connection and another join.

What's wrong with a socket timeout exactly? Everything you're proposing
is ten times more complicated, and more fragile.
msg147293 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 13:02
Antoine, the problem with this test is the timeout. We can set an arbitrary timeout, but how big is big enough?.

My change doesn't need a timeout at all. Problem solved.

The only "cosmetic" problem is the risk of "leaking" a thread. But it would not affect the testsuite if it is a daemon thread, and we would only "leak" if the test fails, not under normal circunstances. The complexities suggested are heroic effords trying to manage that thread when simply ignoring it would be acceptable.

I could set a timeout of 5 minutes just to satisfy you, but for that time the test should have been done yet, and the thread collected anyway. I see that more a hack that actually setting the thread to daemon and forget it, knowing that it will automatically die when done.
msg147294 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 13:36
> Antoine, the problem with this test is the timeout. We can set an
> arbitrary timeout, but how big is big enough?.

I would say answering this question is your task, since you have access
to that buildbot.

> The only "cosmetic" problem is the risk of "leaking" a thread.

This is not cosmetic, the thread might be keeping all kinds of resources
alive, it might also break other tests which expect there to be a single
running Python thread (if e.g. signals are being tested). We don't want
a failing test to trigger a potential cascade of subsequent failures.

> I could set a timeout of 5 minutes just to satisfy you, but for that
> time the test should have been done yet

The issue is not to satisfy me, it's to satify the buildbots. If you say
that 5 minutes is necessary to reliably resolve "localhost", then surely
there's a configuration problem?

If you say that replacing "localhost" with "127.0.0.1" would fix the
issue, then perhaps we should do that, but we must check that it doesn't
break any other tests (for example IPv6 tests).
msg147295 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 13:43
Antoine: Then you would be satisfied if I increase the timeout from 3 seconds to 60 seconds and clean the event signaling?. The current event signaling code has a few race conditions with potential deadlocks.
msg147296 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 13:48
> Antoine: Then you would be satisfied if I increase the timeout from 3
> seconds to 60 seconds and clean the event signaling?

Yes!
msg147297 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 13:50
Consider too that if something goes bad enough in the test to skip the teardown method, the thread will be alive for a while, possibly contaminating some other tests, like you commented.

This is actually unsolvable, I think. Code that NEED to be executed with no other threads around could/should check the thread count and fail with a clear error message. So we at least can point to the real culprit.
msg147298 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 13:58
> Consider too that if something goes bad enough in the test to skip the
> teardown method,

Such as? tearDown is normally like a "finally" block, it always gets
executed (unless perhaps setUp fails).
msg147300 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 14:12
Please, review 71ab454bfe19.diff . I am not satisfied with the timeout approach, since the timeout time is arbitrary. I would rather do the fake connection in teardowm, to be sure the server died.

Anyway, this seems to be the  minimal patch to solve the problem at hand "most of the time" (if know the test is failing sporadically with a timeout of 3 seconds, hope it fails once per year with a timeout of 60 seconds).
msg147303 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-11-08 14:21
Stupid mistake. Please, review b93657b239a5.diff (erroneous "sock.close()" deleted)
msg147305 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-11-08 14:29
> Stupid mistake. Please, review b93657b239a5.diff (erroneous "sock.close()" deleted)

Looks good to me, thanks.
msg147307 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-11-08 15:39
New changeset 76b6b85e4b78 by Jesus Cea in branch '2.7':
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
http://hg.python.org/cpython/rev/76b6b85e4b78

New changeset 554802e562fa by Jesus Cea in branch '2.7':
Partial patch for issue #11812: Take care of test_telnetlib.py
http://hg.python.org/cpython/rev/554802e562fa

New changeset f94533c9229d by Jesus Cea in branch '3.2':
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
http://hg.python.org/cpython/rev/f94533c9229d

New changeset 3b9f58f85d3e by Jesus Cea in branch '3.2':
Partial patch for issue #11812: Take care of test_telnetlib.py
http://hg.python.org/cpython/rev/3b9f58f85d3e

New changeset 85c10a905424 by Jesus Cea in branch 'default':
MERGE: Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
http://hg.python.org/cpython/rev/85c10a905424

New changeset ca8a0dfb2176 by Jesus Cea in branch 'default':
MERGE: Partial patch for issue #11812: Take care of test_telnetlib.py
http://hg.python.org/cpython/rev/ca8a0dfb2176
msg150379 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-12-30 14:51
Seems to be fixed now.
History
Date User Action Args
2022-04-11 14:57:16adminsetgithub: 56021
2011-12-30 14:51:08neologixsetstatus: open -> closed
resolution: fixed
messages: + msg150379

stage: needs patch -> resolved
2011-11-08 15:39:43python-devsetnosy: + python-dev
messages: + msg147307
2011-11-08 14:29:18pitrousetmessages: + msg147305
2011-11-08 14:21:25jceasetmessages: + msg147303
2011-11-08 14:20:14jceasetfiles: - 71ab454bfe19.diff
2011-11-08 14:19:49jceasetfiles: + b93657b239a5.diff
2011-11-08 14:12:15jceasetmessages: + msg147300
2011-11-08 13:59:59jceasetfiles: + 71ab454bfe19.diff
2011-11-08 13:58:22pitrousetmessages: + msg147298
2011-11-08 13:50:01jceasetmessages: + msg147297
2011-11-08 13:48:41pitrousetmessages: + msg147296
2011-11-08 13:43:20jceasetmessages: + msg147295
2011-11-08 13:36:24pitrousetmessages: + msg147294
2011-11-08 13:02:41jceasetmessages: + msg147293
2011-11-08 12:50:55pitrousetmessages: + msg147290
2011-11-08 12:47:51pitrousetmessages: + msg147289
2011-11-08 12:46:41michael.foordsetnosy: - michael.foord
2011-11-08 12:42:04jceasetmessages: + msg147288
2011-11-08 12:30:14jceasetfiles: + 2b155a6d25bb.diff
2011-11-08 12:28:46jceasethgrepos: + hgrepo89
messages: + msg147287
2011-11-08 12:00:53pitrousetmessages: + msg147284
2011-11-08 11:47:47jceasetmessages: + msg147283
2011-11-08 08:15:10neologixsetmessages: + msg147276
2011-11-08 03:11:50jceasetmessages: + msg147271
2011-11-08 03:07:18jceasetassignee: jcea
messages: + msg147270
versions: + Python 2.7
2011-11-03 21:55:45neologixsetmessages: + msg146985
2011-11-03 20:02:37vstinnersetmessages: + msg146968
2011-10-31 16:58:16neologixsetmessages: + msg146713
2011-10-31 16:31:27jceasetmessages: + msg146707
2011-10-08 14:30:01neologixsetnosy: + neologix
messages: + msg145170
2011-09-10 00:20:53jceasetnosy: + jcea
messages: + msg143821
2011-06-24 05:58:13terry.reedysetnosy: + ezio.melotti, michael.foord
messages: + msg138888
2011-06-24 00:06:05vstinnersetfiles: + tests_host.patch
keywords: + patch
messages: + msg138882
2011-06-23 23:38:45vstinnersetmessages: + msg138881
2011-06-23 23:33:28vstinnersetmessages: + msg138880
2011-06-23 23:21:46vstinnersetmessages: + msg138879
2011-06-23 23:11:11terry.reedysettitle: transient test_telnetlib failure -> transient socket failure to connect to 'localhost'
messages: + msg138878
versions: - Python 3.1
2011-06-23 13:41:08vstinnersetnosy: + vstinner
2011-04-15 20:32:30pitrousetmessages: + msg133872
2011-04-15 19:39:32terry.reedysetnosy: + terry.reedy
messages: + msg133868
2011-04-09 23:27:49jackdiedsetnosy: + jackdied
2011-04-09 21:56:54pitroucreate