[erlang-questions] 回复: Ranch listeners exiting
少波波波波少
236227381@REDACTED
Fri May 22 10:18:53 CEST 2015
<code>
case ssl:ssl_accept(CSocket, Timeout) of
ok ->
ok;
%% Garbage was most likely sent to the socket, don't error out.
{error, {tls_alert, _}} ->
ok = close(CSocket),
exit(normal);
%% Socket most likely stopped responding, don't error out.
{error, timeout} ->
ok = close(CSocket),
exit(normal);
{error, Reason} ->
ok = close(CSocket),
error(Reason)
end.
</code>
as you can see,your socket connection is not accept through ssl
------------------ 原始邮件 ------------------
发件人: "Roberto Ostinelli"<roberto@REDACTED>;
发送时间: 2015年5月22日(星期五) 下午4:10
收件人: "Erlang"<erlang-questions@REDACTED>;
主题: [erlang-questions] Ranch listeners exiting
Dear list,I keep on seeing various entries in my logs like this:
```
Ranch listener cometa_listener had connection process started with cowboy_protocol:start_link/4 at <0.6039.0> exit with reason: {closed,[{ranch_ssl,accept_ack,2,[{file,"src/ranch_ssl.erl"},{line,115}]},{cowboy_protocol,init,4,[{file,"src/cowboy_protocol.erl"},{line,91}]}]}
```
No other entries are set. Can someone tell me how I can trace down the cause for this?
Thank you in advance,
r.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150522/af88f18f/attachment.htm>
More information about the erlang-questions
mailing list