check for channel error location

This commit is contained in:
Maximilian Hils 2016-02-03 00:05:02 +01:00 committed by Thomas Kriechbaumer
parent cf8c063773
commit 9759207c8d

View File

@ -219,6 +219,10 @@ class HttpLayer(Layer):
else:
six.reraise(ProtocolException, ProtocolException(
"Error in HTTP connection: %s" % repr(e)), sys.exc_info()[2])
except Exception:
import traceback
traceback.print_exc()
six.reraise(*sys.exc_info()[:3])
finally:
flow.live = False