[New-bugs-announce] [issue1489] test_socket_ssl hanhs on Windows (deadlock)

Paul Moore report at bugs.python.org
Thu Nov 22 22:23:11 CET 2007


New submission from Paul Moore:

When running the test suite on Windows, test_socket_ssl hangs.

After a bit of investigation, it appears that the test is hanging at
line 184 (if self.s.stdout.readline() != "ERROR\n":) in
OpenSSLServer._external.

The problem is that the test assumes it can read a line of stdout from
the openssl.exe process. However, the openssl.exe on my PC (from the
GnuWin32 project) appears to buffer its output, so the Python process
deadlocks waiting for a response.

An easy (if clumsy) fix is to simply skip the check on the output of the
server. I have attached a patch which does this for win32 only (on the
assumption that other platforms don't have this issue).

I guess that other openssl builds don't have the same problem - however,
I can't see an easy way of testing for this.

----------
components: Tests
files: test_socket_ssl.diff
messages: 57768
nosy: pmoore
severity: normal
status: open
title: test_socket_ssl hanhs on Windows (deadlock)
versions: Python 2.6
Added file: http://bugs.python.org/file8796/test_socket_ssl.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1489>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_socket_ssl.diff
Type: application/octet-stream
Size: 801 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071122/30a5a751/attachment.obj 


More information about the New-bugs-announce mailing list