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: Forbid passing SSLSocket into asyncio methods
Type: behavior Stage: resolved
Components: asyncio, SSL Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, christian.heimes, matan1008, yselivanov
Priority: normal Keywords: patch

Created on 2022-01-04 05:46 by matan1008, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30385 closed matan1008, 2022-01-04 06:54
PR 31442 merged asvetlov, 2022-02-20 11:06
PR 31443 merged asvetlov, 2022-02-20 12:19
PR 31444 merged asvetlov, 2022-02-20 12:23
Messages (2)
msg413580 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2022-02-20 10:57
SSLSocket is a blocking object by definition, it is not compatible with asyncio.

asyncio has a check for SSLSocket in sock_*() operations, it should be extended to transport-based API
msg413583 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2022-02-20 12:16
The issue can be backported.
It doesn't change existing behavior but raises a better error.
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90410
2022-02-20 12:49:51asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-02-20 12:23:02asvetlovsetpull_requests: + pull_request29575
2022-02-20 12:19:52asvetlovsetpull_requests: + pull_request29574
2022-02-20 12:16:43asvetlovsetmessages: + msg413583
2022-02-20 12:15:41asvetlovsetversions: + Python 3.9
2022-02-20 11:06:58asvetlovsetpull_requests: + pull_request29573
2022-02-20 10:57:57asvetlovsetmessages: + msg413580
title: SSLWantReadError causes _SelectorSocketTransport to close -> Forbid passing SSLSocket into asyncio methods
2022-01-04 08:31:05christian.heimessetassignee: christian.heimes ->
2022-01-04 06:54:40matan1008setkeywords: + patch
stage: patch review
pull_requests: + pull_request28593
2022-01-04 05:46:27matan1008create