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 <1609099457.62.0.901449960777.issue41450@roundup.psfhosted.org>
In-reply-to
Content
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();

https://github.com/python/cpython/blob/3.7/Modules/_ssl.c#L782

Where the errorhandler of socketmodule.c was called, and error message that raised was OSError (https://github.com/python/cpython/blob/master/Modules/socketmodule.c#L607)

---

In issue31122, Dima.Tisnek contributed a patch to remove the s-errorhandler() and replace it with  SSLEOFError https://github.com/python/cpython/commit/495bd035662fda29639f9d52bb6baebea31d72fa 

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.
History
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: <1609099457.62.0.901449960777.issue41450@roundup.psfhosted.org>
2020-12-27 20:04:17orsenthillinkissue41450 messages
2020-12-27 20:04:17orsenthilcreate