aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Fish <[email protected]>2013-08-28 20:55:11 +0100
committerJames Fish <[email protected]>2013-08-28 20:56:10 +0100
commit767109b1c371448baf8ad01d77b71f4ea8c3f858 (patch)
treee295502b4347f61274da26ef7dae55e34ba87f92 /src
parent02a173259022fba7533ddb4239f962321066f875 (diff)
downloadranch-767109b1c371448baf8ad01d77b71f4ea8c3f858.tar.gz
ranch-767109b1c371448baf8ad01d77b71f4ea8c3f858.tar.bz2
ranch-767109b1c371448baf8ad01d77b71f4ea8c3f858.zip
Don't report error when protocol exits with reason shutdown
Exiting with reason `shutdown` or `{shutdown, term()}` is not an error.
Diffstat (limited to 'src')
-rw-r--r--src/ranch_conns_sup.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ranch_conns_sup.erl b/src/ranch_conns_sup.erl
index e16df69..c6b11ec 100644
--- a/src/ranch_conns_sup.erl
+++ b/src/ranch_conns_sup.erl
@@ -200,6 +200,10 @@ system_code_change(Misc, _, _, _) ->
%% support printable strings.
report_error(_, _, normal) ->
ok;
+report_error(_, _, shutdown) ->
+ ok;
+report_error(_, _, {shutdown, _}) ->
+ ok;
report_error(Ref, Pid, Reason) ->
error_logger:error_msg(
"Ranch listener ~p had connection process ~p "