[issue9619] test_ssl freezes

2010-08-15 Thread Richard Jones
Richard Jones added the comment: Thanks for the investigation Antoine. In r84088 I've added a call to asyncore.close_all in the smtpd test tearDown methods. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue9619] test_ssl freezes

2010-08-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: In r84086, I've added a save/restore guard of asyncore.socket_map to the regression test suite. It also warns when a test fails to leave the socket_map in its initial test. test_smtpd is the only test that displays the warning. -- ___

[issue9619] test_ssl freezes

2010-08-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > does test_smtpd register file descriptor 0 (stdin) in asyncore? After some debug prints, it turns out to be the case. One general problem is asyncore's global socket_map, which means it can leak between tests if some tests fail cleaning correctly after thems

[issue9619] test_ssl freezes

2010-08-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, this can be reproduced by running test_smtpd before test_ssl: $ ./python -m test.regrtest -v -uall test_smtpd test_ssl It then freezes at that point: [...] test_asyncore_server (test.test_ssl.ThreadedTests) Check the example asyncore integration. ..

[issue9619] test_ssl freezes

2010-08-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : Recently there have been test_ssl freezes on the buildbots. They seem to happen in the asyncore test case: http://www.python.org/dev/buildbot/builders/i386%20Ubuntu%203.x/builds/1903/steps/test/logs/stdio http://www.python.org/dev/buildbot/builders/x86%20Ubu