aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]enines.eu>2020-11-23 09:53:45 +0100
committerLoïc Hoguin <[email protected]>2020-11-23 11:02:01 +0100
commite12d7bbe2151ee727d4cd63eb5df649da9b9effa (patch)
treeb0887f55d7918c131dc71e5576d468137d2fdc56
parentc47f1e5fb824f24e97b8097c3a0886a2a022fa10 (diff)
downloadcowboy-e12d7bbe2151ee727d4cd63eb5df649da9b9effa.tar.gz
cowboy-e12d7bbe2151ee727d4cd63eb5df649da9b9effa.tar.bz2
cowboy-e12d7bbe2151ee727d4cd63eb5df649da9b9effa.zip
Don't produce an error report for normal stream process exits
-rw-r--r--src/cowboy_stream_h.erl4
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.