Comparison

core/s2smanager.lua @ 451:e9f269e5204e

No more reading 1 byte at a time from sockets
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Nov 2008 00:08:23 +0000
parent 448:2623519b25b0
child 519:cccd610a0ef9
comparison
equal deleted inserted replaced
450:e04c4052742c 451:e9f269e5204e
141 if not success and err ~= "timeout" then 141 if not success and err ~= "timeout" then
142 log("warn", "s2s connect() failed: %s", err); 142 log("warn", "s2s connect() failed: %s", err);
143 end 143 end
144 144
145 local cl = connlisteners_get("xmppserver"); 145 local cl = connlisteners_get("xmppserver");
146 conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, 1, hosts[from_host].ssl_ctx ); 146 conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, cl.default_mode or 1, hosts[from_host].ssl_ctx );
147 host_session.conn = conn; 147 host_session.conn = conn;
148 148
149 -- Register this outgoing connection so that xmppserver_listener knows about it 149 -- Register this outgoing connection so that xmppserver_listener knows about it
150 -- otherwise it will assume it is a new incoming connection 150 -- otherwise it will assume it is a new incoming connection
151 cl.register_outgoing(conn, host_session); 151 cl.register_outgoing(conn, host_session);