ssl:setopts

Roberto Ostinelli roberto@REDACTED
Fri Apr 9 19:39:57 CEST 2010


dear list,

i'm currently setting {active, once} as option of an ssl socket like this:

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

this is what i get:
=ERROR REPORT==== 9-Apr-2010::19:31:25 ===
** Generic server <0.49.0> terminating
** Last message in was {setopts,<0.50.0>,[{active,once}]}
** When Server state == {st,acceptor,<0.42.0>,<0.50.0>,<0.50.0>,6,false,
                            [{mode,binary},
                             {packet,http},
                             {ip,{0,0,0,0}},
                             {active,false},
                             {nodelay,false}],
                            {sslsocket,6,<0.49.0>},
                            nil,54428,nil,false,false}
** Reason for termination ==
** {function_clause,[{prim_inet,setopts,[nil,[{active,once}]]},
                     {ssl_broker,handle_call,3},
                     {gen_server,handle_msg,5},
                     {proc_lib,init_p_do_apply,3}]}


i have ssl 3.10.3 and i thought this was correct.

could someone please tell me what i'm doing wrong?

thank you in advance,

r.


More information about the erlang-questions mailing list