From 9f9de6569531ef2bb9a2af6e2757c0ab0a26d4fc Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sat, 5 Dec 2020 23:52:15 +0100 Subject: [PATCH] Add refs about ignoring shutdown connection errors --- cheroot/errors.py | 8 +++++++- docs/conf.py | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cheroot/errors.py b/cheroot/errors.py index 87548f2da2..e00629f86f 100644 --- a/cheroot/errors.py +++ b/cheroot/errors.py @@ -71,7 +71,13 @@ def plat_specific_errors(*errnames): * ESHUTDOWN — write on a socket which has been shutdown for writing * ECONNRESET — connection is reset by the peer, we received a TCP RST packet -Ref: https://github.com/cherrypy/cheroot/issues/341#issuecomment-735884889 +Refs: +* https://github.com/cherrypy/cheroot/issues/341#issuecomment-735884889 +* https://bugs.python.org/issue30319 +* https://bugs.python.org/issue30329 +* https://github.com/python/cpython/commit/83a2c28 +* https://github.com/python/cpython/blob/c39b52f/Lib/poplib.py#L297-L302 +* https://docs.microsoft.com/windows/win32/api/winsock/nf-winsock-shutdown """ try: # py3 diff --git a/docs/conf.py b/docs/conf.py index 323a5ad86f..f4c52e6d0d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -107,6 +107,10 @@ # Requires a more liberal 'Accept: ' HTTP request header: # Ref: https://github.com/sphinx-doc/sphinx/issues/7247 r'https://github\.com/cherrypy/cheroot/workflows/[^/]+/badge\.svg', + + # Has an ephemeral anchor (line-range) but actual HTML has separate per- + # line anchors. + r'https://github.com/python/cpython/blob/c39b52f/Lib/poplib.py#L297-L302', ] linkcheck_workers = 25