Software /
code /
prosody
Comparison
core/s2smanager.lua @ 3953:174edf85a916
s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Dec 2010 04:49:30 +0000 |
parent | 3952:f5d2400ca127 |
child | 3957:b5223a74e07e |
comparison
equal
deleted
inserted
replaced
3952:f5d2400ca127 | 3953:174edf85a916 |
---|---|
175 local host_session = { to_host = to_host, from_host = from_host, host = from_host, | 175 local host_session = { to_host = to_host, from_host = from_host, host = from_host, |
176 notopen = true, type = "s2sout_unauthed", direction = "outgoing", | 176 notopen = true, type = "s2sout_unauthed", direction = "outgoing", |
177 open_stream = session_open_stream }; | 177 open_stream = session_open_stream }; |
178 | 178 |
179 hosts[from_host].s2sout[to_host] = host_session; | 179 hosts[from_host].s2sout[to_host] = host_session; |
180 | |
181 host_session.close = destroy_session; -- This gets replaced by xmppserver_listener later | |
180 | 182 |
181 local log; | 183 local log; |
182 do | 184 do |
183 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); | 185 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); |
184 log = logger_init(conn_name); | 186 log = logger_init(conn_name); |