From: Jouni R. <Jou...@fm...> - 2009-02-22 21:24:08
|
Hi, to me it looks like the fdsrv case is not sending correct tuple back, the second element should be 'undefined', then followed the gen_tcp_listen or Err. do_listen(GC, SC) -> case SC#sconf.ssl of undefined when ?gc_use_fdsrv(GC) -> %% Use fdsrv kit from jungerl, requires fdsrv %% to be properly installed fdsrv:start(), case fdsrv:bind_socket(tcp, {SC#sconf.listen, SC#sconf.port}) of {ok, Fd} -> {nossl, gen_tcp_listen(SC#sconf.port,[{fd, Fd}| listen_opts(SC)])}; Err -> {nossl, Err} end; undefined -> {nossl, undefined, gen_tcp_listen(SC#sconf.port, listen_opts(SC))}; SSL -> {ssl, certinfo(SSL), ssl:listen(SC#sconf.port, ssl_listen_opts(GC, SC, SSL))} end. I see from the the docs, that fdsrv is not the best solution anymore, but I needed to change my server tonight and changing the erlang code was faster than changing the debian init.d script ... Jouni -- Jouni Rynö mailto://Jou...@fm.../ http://space.fmi.fi/~ryno/ Finnish Meteorological Institute http://www.fmi.fi/ P.O.BOX 503 Tel (+358)-9-19294656 FIN-00101 Helsinki FAX (+358)-9-19294603 Finland priv-GSM (+358)-50-5302903 "It's just zeros and ones, it cannot be hard" |