Mute SSL exceptions on connection shutdown

Happens most frequently with SSL errors being sent by the
client
This commit is contained in:
Sebastian Lohff 2015-03-17 23:47:51 +01:00
parent 659383bf30
commit 46757ff89b
1 changed files with 5 additions and 1 deletions

View File

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