summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-16 17:37:53 +0100
committerGitHub <noreply@github.com>2021-01-16 17:37:53 +0100
commit88e972e46d71520fbb480642cf957185e5a14a46 (patch)
treef39ce1fc17d53462f240c5d2b28b586bfdaa8304
parente0a46367df8b17905f1c78f5c86f88d21c0f2b4d (diff)
Fixed #32265, Refs #32355 -- Removed unnecessary ServerHandler.handle_error().
ConnectionAbortedError, BrokenPipeError, ConnectionResetError raised from SocketServer.BaseServer.finish_request() are already suppressed by wsgiref.handlers.BaseHandler.run() in Python 3.7+, see https://github.com/python/cpython/commit/47ffc1a9f6fab1c17cdcc325d4af066317369ed7
-rw-r--r--django/core/servers/basehttp.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
index c5b020e4f6..14dab517c9 100644
--- a/django/core/servers/basehttp.py
+++ b/django/core/servers/basehttp.py
@@ -117,11 +117,6 @@ class ServerHandler(simple_server.ServerHandler):
self.get_stdin()._read_limited()
super().close()
- def handle_error(self):
- # Ignore broken pipe errors, otherwise pass on
- if not is_broken_pipe_error():
- super().handle_error()
-
class WSGIRequestHandler(simple_server.WSGIRequestHandler):
protocol_version = 'HTTP/1.1'