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 | ebb79437a842551b2cc8e403aaeccdc642260fa0 (patch) | |
tree | 3e680ba447cccca67d8b7940c70e449e19540015 /plugins/mod_s2s | |
parent | 447a846d4019e43cac4333173f58041281bfc36c (diff) | |
download | prosody-ebb79437a842551b2cc8e403aaeccdc642260fa0.tar.gz prosody-ebb79437a842551b2cc8e403aaeccdc642260fa0.zip |
mod_s2s: Comment on the various 'reason' arguments passed to :close
Diffstat (limited to 'plugins/mod_s2s')
-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 |