[erlang-questions] Using ssl (via ranch) {active, once} behaving like {active, twice}

Ingela Andin ingela.andin@REDACTED
Tue Sep 9 08:56:41 CEST 2014


Hi!

You are aware of that sockets by default are active? So you want to set the
socket active option already in listen.

Regards Ingela Erlang/OTP team


2014-09-08 17:16 GMT+02:00 Roger Lipscombe <roger@REDACTED>:

> In R16B03-1, using SSL (with ranch) I'm seeing {active, once} behave
> as if it was {active, twice}.
>
> The client sends a message in 3 packets; I `receive` one packet, I
> call `recv`, which delivers the 3rd packet; process fails to parse the
> message and crashes; the crash log reveals that the 2nd packet is in
> the process message queue.
>
> What, if anything, am I doing wrong?
>
> Cheers,
> Roger.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140909/c2062cde/attachment.htm>


More information about the erlang-questions mailing list