stop swallowing exception on _proxy_request()

This commit is contained in:
Noah Levitt 2018-03-28 18:04:54 -07:00
parent 41486f5f82
commit 7f1c7f532e
2 changed files with 2 additions and 1 deletions

View File

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

View File

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