diff options
Diffstat (limited to 'src/cowboy_stream_h.erl')
-rw-r--r-- | src/cowboy_stream_h.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cowboy_stream_h.erl b/src/cowboy_stream_h.erl index a4a1c1a..f516f3d 100644 --- a/src/cowboy_stream_h.erl +++ b/src/cowboy_stream_h.erl @@ -294,7 +294,9 @@ request_process(Req, Env, Middlewares) -> try execute(Req, Env, Middlewares) catch - exit:Reason:Stacktrace -> + exit:Reason={shutdown, _}:Stacktrace -> + erlang:raise(exit, Reason, Stacktrace); + exit:Reason:Stacktrace when Reason =/= normal, Reason =/= shutdown -> erlang:raise(exit, {Reason, Stacktrace}, Stacktrace) end. |