forked from seba/servefile
Mute SSL exceptions on connection shutdown
Happens most frequently with SSL errors being sent by the client
This commit is contained in:
parent
659383bf30
commit
46757ff89b
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue