mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
ConnectionAbortedError, BrokenPipeError, ConnectionResetError raised
from SocketServer.BaseServer.finish_request() are already suppressed
by wsgiref.handlers.BaseHandler.run() in Python 3.7+, see
47ffc1a9f6
This commit is contained in:
parent
e0a46367df
commit
88e972e46d
@ -117,11 +117,6 @@ class ServerHandler(simple_server.ServerHandler):
|
|||||||
self.get_stdin()._read_limited()
|
self.get_stdin()._read_limited()
|
||||||
super().close()
|
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):
|
class WSGIRequestHandler(simple_server.WSGIRequestHandler):
|
||||||
protocol_version = 'HTTP/1.1'
|
protocol_version = 'HTTP/1.1'
|
||||||
|
Loading…
Reference in New Issue
Block a user