[issue24906] asyncore asynchat hanging on ssl

Michele Comitini report at bugs.python.org
Fri Aug 21 11:32:59 CEST 2015


New submission from Michele Comitini:

When sending a message larger than 4096 bytes with smtpd on a ssl socket, everything hangs.

This is due to polling before synchronizing the SSL channel with the underlying socket.

The issue can be solved by properly modifying the poll function and handling the SSLWantRead exception.

I provide 2 (Debug)SMTPServer implementations and one client to show the error and the workaround all using ssl.

The workaround is not correct semantically but fixes the poll function behavior correctly.

----------
components: Library (Lib)
files: async-ssl-bug.zip
messages: 248946
nosy: Michele Comitini
priority: normal
severity: normal
status: open
title: asyncore asynchat hanging on ssl
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file40218/async-ssl-bug.zip

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


More information about the Python-bugs-list mailing list