Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 7652:7cc3d6c764ce
mod_bosh: Log when a stanza isn't handled because we can't find a session for it
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 02 Sep 2016 21:57:40 +0100 |
parent | 7651:55f11a6806bc |
child | 7653:17e42f793341 |
comparison
equal
deleted
inserted
replaced
7651:55f11a6806bc | 7652:7cc3d6c764ce |
---|---|
410 stanza = session.filter("stanzas/in", stanza); | 410 stanza = session.filter("stanzas/in", stanza); |
411 if stanza then | 411 if stanza then |
412 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr); | 412 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr); |
413 end | 413 end |
414 end | 414 end |
415 else | |
416 log("debug", "No session for this stanza! (sid: %s)", context.sid or "none!"); | |
415 end | 417 end |
416 end | 418 end |
417 | 419 |
418 function stream_callbacks.streamclosed(context) | 420 function stream_callbacks.streamclosed(context) |
419 local session = sessions[context.sid]; | 421 local session = sessions[context.sid]; |