[New-bugs-announce] [issue3899] test_ssl.py doesn't properly test ssl integration with asyncore

Giampaolo Rodola' report at bugs.python.org
Thu Sep 18 15:35:50 CEST 2008


New submission from Giampaolo Rodola' <billiejoex at users.sourceforge.net>:

The AsyncoreEchoServer class in test_ssl.py doesn't actually test a real
integration with asyncore since the do_handshake_on_connect flag is set
to True and hence temporarily blocks the asyncore polling loop as long
as the ssl handshake finishes.
The patch in attachment subclasses some asyncore internals so that a
non-blocking ssl handshake takes place.

Tested under Windows XP SP3, Python 2.6rc1.

----------
components: Library (Lib)
files: test_ssl.patch
keywords: patch
messages: 73382
nosy: giampaolo.rodola, janssen, josiah.carlson, josiahcarlson
severity: normal
status: open
title: test_ssl.py doesn't properly test ssl integration with asyncore
type: behavior
versions: Python 2.6, Python 3.1
Added file: http://bugs.python.org/file11518/test_ssl.patch

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


More information about the New-bugs-announce mailing list