aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ranch_ssl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index e30b75c..7969401 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -107,7 +107,7 @@ accept_ack(CSocket, Timeout) ->
ok = close(CSocket),
exit(normal);
%% Socket most likely stopped responding, don't error out.
- {error, timeout} ->
+ {error, Reason} when Reason =:= timeout; Reason =:= closed ->
ok = close(CSocket),
exit(normal);
{error, Reason} ->