[erlang-questions] Ranch listeners exiting

Roberto Ostinelli <>
Fri May 22 11:09:52 CEST 2015


On Fri, May 22, 2015 at 10:18 AM, 少波波波波少 <> wrote:

> <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
>


Not sure I understand. Do you mean that a non-SSL connection was requested
on the socket, which therefore considers it as "garbage"?

Thank you,
r.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150522/ddc92977/attachment.htm>


More information about the erlang-questions mailing list