ssl and {active, once} - bug?

Roberto Ostinelli <>
Sun Apr 11 19:39:26 CEST 2010


i managed to check that the badinfo error messages is received as soon as i call

ssl:setopts(Sock, [{active, once}]).

tried also with latest R13B04, exact same results.

real lost here.

r.


> now:
>
> 1. i see that the incoming message has format {http, Sock, Data}.
> shouldn't it be {ssl, Sock, Data} as per
> http://www.erlang.org/doc/man/ssl.html:
>
> "When a socket is in active mode (the default), data from the socket
> is delivered to the owner of the socket in the form of messages:
>
>    * {ssl, Socket, Data}
>    * {ssl_closed, Socket}
>    * {ssl_error, Socket, Reason}"
>
> i'm using R13B01 so maybe this has changed.
>
> 2. why am i receiving a badinfo message ["Call not recognized for
> current mode (active or passive) and state of socket"], and what can i
> do to solve this?
>
>
> thank you in advance,
>
> r.


More information about the erlang-questions mailing list