Software /
code /
prosody
Comparison
core/hostmanager.lua @ 8559:d5d746e4c453
hostmanager: Add a logging close method in case something tries to close the origin of local-originated stanzas (see #1084)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 24 Feb 2018 19:40:18 +0100 |
parent | 8251:cb2d86f4b511 |
child | 8561:7b9ffddc4276 |
comparison
equal
deleted
inserted
replaced
8538:3eb4cafb3b64 | 8559:d5d746e4c453 |
---|---|
90 s2sout = {}; | 90 s2sout = {}; |
91 events = events_new(); | 91 events = events_new(); |
92 send = host_send; | 92 send = host_send; |
93 modules = {}; | 93 modules = {}; |
94 }; | 94 }; |
95 function host_session:close(reason) | |
96 log("debug", "Attempt to close host session %s with reason: %s", self.host, reason); | |
97 end | |
95 setmetatable(host_session, host_mt); | 98 setmetatable(host_session, host_mt); |
96 if not host_config.component_module then -- host | 99 if not host_config.component_module then -- host |
97 host_session.type = "local"; | 100 host_session.type = "local"; |
98 host_session.sessions = {}; | 101 host_session.sessions = {}; |
99 else -- component | 102 else -- component |