mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
close all remote connections at shutdown
to avoid hang
This commit is contained in:
parent
3f9ecbacac
commit
7c814d71ba
@ -483,6 +483,7 @@ class WarcProxy(SingleThreadedWarcProxy, warcprox.mitmproxy.PooledMitmProxy):
|
||||
def server_close(self):
|
||||
self.logger.info('shutting down')
|
||||
http_server.HTTPServer.server_close(self)
|
||||
self.remote_connection_pool.clear()
|
||||
|
||||
def handle_error(self, request, client_address):
|
||||
self.logger.warn(
|
||||
|
Loading…
x
Reference in New Issue
Block a user