Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 10632:c9de8275aaf2
mod_s2s: Comment on the various 'reason' arguments passed to :close
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Jan 2020 19:52:48 +0100 |
parent | 10625:3bfb20be844c |
child | 10648:2bd17e043275 |
comparison
equal
deleted
inserted
replaced
10631:58cc0bc09f3d | 10632:c9de8275aaf2 |
---|---|
485 end | 485 end |
486 end | 486 end |
487 | 487 |
488 --- Session methods | 488 --- Session methods |
489 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; | 489 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; |
490 -- reason: stream error to send to the remote server | |
491 -- remote_reason: stream error received from the remote server | |
492 -- bounce_reason: stanza error to pass to bounce_sendq beacuse stream- and stanza errors are different | |
490 local function session_close(session, reason, remote_reason, bounce_reason) | 493 local function session_close(session, reason, remote_reason, bounce_reason) |
491 local log = session.log or log; | 494 local log = session.log or log; |
492 if session.conn then | 495 if session.conn then |
493 if session.notopen then | 496 if session.notopen then |
494 if session.direction == "incoming" then | 497 if session.direction == "incoming" then |