diff options
author | Kim Alvefur <zash@zash.se> | 2020-01-26 19:52:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-01-26 19:52:48 +0100 |
commit | 458f098b1cf36aaf8aa69940eb35474573743847 (patch) | |
tree | 3e680ba447cccca67d8b7940c70e449e19540015 | |
parent | 10715ccb2868f0c902ce6813afaa523ef570ad94 (diff) | |
download | prosody-458f098b1cf36aaf8aa69940eb35474573743847.tar.gz prosody-458f098b1cf36aaf8aa69940eb35474573743847.zip |
mod_s2s: Comment on the various 'reason' arguments passed to :close
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 4c509ba9..39b23ee5 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -487,6 +487,9 @@ end --- Session methods local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; +-- reason: stream error to send to the remote server +-- remote_reason: stream error received from the remote server +-- bounce_reason: stanza error to pass to bounce_sendq beacuse stream- and stanza errors are different local function session_close(session, reason, remote_reason, bounce_reason) local log = session.log or log; if session.conn then |