Browse Source

Mute SSL exceptions on connection shutdown

Happens most frequently with SSL errors being sent by the
client
tests
Sebastian Lohff 7 years ago
parent
commit
46757ff89b
  1. 6
      servefile

6
servefile

@ -673,7 +673,11 @@ class SecureThreadedHTTPServer(ThreadedHTTPServer): @@ -673,7 +673,11 @@ class SecureThreadedHTTPServer(ThreadedHTTPServer):
self.server_activate()
def shutdown_request(self, request):
request.shutdown()
try:
request.shutdown()
except SSL.Error:
# ignore SSL errors on connection shutdown
pass
class SecureHandler():

Loading…
Cancel
Save