Merge pull request #2082 from tarnacious/master

Call error handler and mark flow on HTTPException
This commit is contained in:
Maximilian Hils 2017-03-04 15:12:29 +01:00 committed by GitHub
commit 2a1ed7f3eb

View File

@ -276,6 +276,8 @@ class HttpLayer(base.Layer):
# We optimistically guess there might be an HTTP client on the
# other end
self.send_error_response(400, repr(e))
f.error = flow.Error(str(e))
self.channel.ask("error", f)
raise exceptions.ProtocolException(
"HTTP protocol error in client request: {}".format(e)
)