This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

Created on 2015-08-21 09:32 by Michele Comitini, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
async-ssl-bug.zip Michele Comitini, 2015-08-21 09:32 smtp servers impl and client showing async + ssl troubles
Messages (2)
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.
msg394678 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-05-28 19:22
asyncore and asynchat are deprecated since 3.6, so this is not going to be fixed. Use asyncio instead.
History
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69094
2021-05-28 19:22:46iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg394678

resolution: wont fix
stage: resolved
2016-01-17 14:26:12SilentGhostsetnosy: + josiahcarlson, giampaolo.rodola, stutzbach
2015-08-21 09:32:59Michele Comitinicreate