Software /
code /
prosody
Comparison
core/s2smanager.lua @ 2469:9e0c0b08f219
s2smanager: No-one noticed that Prosody stopped sending to/from on stream headers recently? :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 Jan 2010 04:35:10 +0000 |
parent | 2426:4cef9808662a |
child | 2472:cde876604bb7 |
comparison
equal
deleted
inserted
replaced
2468:68bb1cc1a8b0 | 2469:9e0c0b08f219 |
---|---|
325 cl.register_outgoing(conn, host_session); | 325 cl.register_outgoing(conn, host_session); |
326 | 326 |
327 local w, log = conn.write, host_session.log; | 327 local w, log = conn.write, host_session.log; |
328 host_session.sends2s = function (t) log("debug", "sending: %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?")); w(conn, tostring(t)); end | 328 host_session.sends2s = function (t) log("debug", "sending: %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?")); w(conn, tostring(t)); end |
329 | 329 |
330 host_session:open_stream(); | 330 host_session:open_stream(from_host, to_host); |
331 | 331 |
332 log("debug", "Connection attempt in progress..."); | 332 log("debug", "Connection attempt in progress..."); |
333 add_task(connect_timeout, function () | 333 add_task(connect_timeout, function () |
334 if host_session.conn ~= conn or | 334 if host_session.conn ~= conn or |
335 host_session.type == "s2sout" or | 335 host_session.type == "s2sout" or |