[erlang-questions] Re: ssl and {active, once} - bug?

Tony Rogvall tony@REDACTED
Sun Apr 11 21:01:59 CEST 2010


What is the value of Sock ?
 io:format 

/Tony

On 11 apr 2010, at 19.39, Roberto Ostinelli wrote:

> 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.
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> 



More information about the erlang-questions mailing list