mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
stop swallowing exception on _proxy_request()
This commit is contained in:
parent
41486f5f82
commit
7f1c7f532e
2
setup.py
2
setup.py
@ -40,7 +40,7 @@ except:
|
||||
|
||||
setuptools.setup(
|
||||
name='warcprox',
|
||||
version='2.4b2.dev158',
|
||||
version='2.4b2.dev159',
|
||||
description='WARC writing MITM HTTP/S proxy',
|
||||
url='https://github.com/internetarchive/warcprox',
|
||||
author='Noah Levitt',
|
||||
|
@ -462,6 +462,7 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler):
|
||||
self._conn_pool._put_conn(self._remote_server_conn)
|
||||
except:
|
||||
self._remote_server_conn.sock.close()
|
||||
raise
|
||||
finally:
|
||||
if prox_rec_res:
|
||||
prox_rec_res.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user