Issue 11183: Finer-grained exceptions for the ssl module (original) (raw)

Issue11183

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.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/55392

classification

Title: Finer-grained exceptions for the ssl module
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.3

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: exarkun, giampaolo.rodola, pitrou, python-dev
Priority: normal Keywords: patch

Created on 2011-02-11 10:08 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sslerrors.patch pitrou,2011-10-22 22:23 review
Messages (5)
msg128370 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-02-11 10:08
pyOpenSSL (*) has the good idea of defining exception subclasses for the various OpenSSL error codes (ZeroReturnError, WantReadError, etc.). The ssl module could do the same. (*) http://packages.python.org/pyOpenSSL/openssl-ssl.html
msg140292 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-07-13 17:53
Note: the ERR_GET_REASON() macro helps get a more precise explanation of an error. We could add a reason attribute to raised exceptions, and also provide a mnemonic-integer mapping.
msg146196 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-10-22 22:23
Here is a patch. It adds SSLZeroReturnError, SSLWantReadError, SSLWantWriteError, SSLSyscallError and SSLEOFError.
msg146522 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-10-27 22:01
New changeset 2c4a9c778bb3 by Antoine Pitrou in branch 'default': Issue #11183: Add finer-grained exceptions to the ssl module, so that http://hg.python.org/cpython/rev/2c4a9c778bb3
msg146523 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-10-27 22:03
Committed now.
History
Date User Action Args
2022-04-11 14:57:12 admin set github: 55392
2011-10-27 22:03:53 pitrou set status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2011-10-27 22:01:15 python-dev set nosy: + python-devmessages: +
2011-10-22 22:23:38 pitrou set stage: needs patch -> patch review
2011-10-22 22:23:32 pitrou set files: + sslerrors.patchkeywords: + patchmessages: +
2011-07-13 17:53:08 pitrou set messages: + stage: needs patch
2011-02-11 10:08:30 pitrou create