Title: asyncore asynchat hanging on ssl
Type: crash Stage:
Components: Library (Lib) Versions: Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Michele Comitini, giampaolo.rodola, josiahcarlson, stutzbach
Priority: normal Keywords:

Created on 2015-08-21 09:32 by Michele Comitini, last changed 2016-01-17 14:26 by SilentGhost.

File name Uploaded Description Edit Michele Comitini, 2015-08-21 09:32 smtp servers impl and client showing async + ssl troubles
Messages (1)
msg248946 - (view) Author: Michele Comitini (Michele Comitini) Date: 2015-08-21 09:32
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.
Date User Action Args
2016-01-17 14:26:12SilentGhostsetnosy: + josiahcarlson, giampaolo.rodola, stutzbach
2015-08-21 09:32:59Michele Comitinicreate