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.

Author michael-o
Recipients michael-o
Date 2021-04-03.19:38:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617478711.42.0.190186682039.issue43717@roundup.psfhosted.org>
In-reply-to
Content
When working with proxies and HTTP CONNECT I came across these lines: https://github.com/python/cpython/blob/63c69440c7adb0de1d191a8d3d100b335d5c2f81/Lib/http/client.py#L901-L903

I truly fail to see why this is an OSError. OSErrors (https://docs.python.org/3/library/exceptions.html#os-exceptions) describe a low-level issues, but HTTP is a high level protocol. I would expect something like NotConnected or at least something which derives from HTTPException.

OSError is expected on socket issues only.
History
Date User Action Args
2021-04-03 19:38:31michael-osetrecipients: + michael-o
2021-04-03 19:38:31michael-osetmessageid: <1617478711.42.0.190186682039.issue43717@roundup.psfhosted.org>
2021-04-03 19:38:31michael-olinkissue43717 messages
2021-04-03 19:38:31michael-ocreate