Mute SSL exceptions on connection shutdown

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

@ -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