aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaas-Maarten Zeeman <[email protected]>2016-01-13 11:57:47 +0100
committerLoïc Hoguin <[email protected]>2016-09-19 14:18:43 +0200
commitad8c04cb721fe911db7c23b6a0d51d4d5dba82af (patch)
tree7ce8b7277d8c372e8a6266da1d25cc40e797b86f /src
parentbd9bfdf42dd529072e56e94f8e0ca4315db7330a (diff)
downloadranch-ad8c04cb721fe911db7c23b6a0d51d4d5dba82af.tar.gz
ranch-ad8c04cb721fe911db7c23b6a0d51d4d5dba82af.tar.bz2
ranch-ad8c04cb721fe911db7c23b6a0d51d4d5dba82af.zip
Don't silently drop the accept rate
Diffstat (limited to 'src')
-rw-r--r--src/ranch_acceptor.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ranch_acceptor.erl b/src/ranch_acceptor.erl
index 3b28369..e889ba4 100644
--- a/src/ranch_acceptor.erl
+++ b/src/ranch_acceptor.erl
@@ -39,6 +39,7 @@ loop(LSocket, Transport, ConnsSup) ->
%% We can't accept anymore anyway, so we might as well wait
%% a little for the situation to resolve itself.
{error, emfile} ->
+ error_logger:warning_msg("Ranch acceptor reducing accept rate: out of file descriptors~n"),
receive after 100 -> ok end;
%% We want to crash if the listening socket got closed.
{error, Reason} when Reason =/= closed ->