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 orsenthil
Recipients Dima.Tisnek, Jeffrey.Kintscher, christian.heimes, docs@python, martin.panter, orsenthil, paxdiablo, sibiryakov
Date 2020-12-27.20:04:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is resolved by Issue 31122 and code now raises SSLEOFError instead of OSError.

The reason for OSError in the first place was PySSL_SetError function had the following call s->errorhandler();

Where the errorhandler of socketmodule.c was called, and error message that raised was OSError (


In issue31122, Dima.Tisnek contributed a patch to remove the s-errorhandler() and replace it with  SSLEOFError 

Since the patch was ported to 3.8 and 3.9, OSError is no longer raised by the ssl module for the do_handshake call or wherever PySSL_SetError is utilized.

Closing this bug report as resolved.
Date User Action Args
2020-12-27 20:04:17orsenthilsetrecipients: + orsenthil, christian.heimes, docs@python, martin.panter, Dima.Tisnek, sibiryakov, Jeffrey.Kintscher, paxdiablo
2020-12-27 20:04:17orsenthilsetmessageid: <>
2020-12-27 20:04:17orsenthillinkissue41450 messages
2020-12-27 20:04:17orsenthilcreate