Software /
code /
prosody
Comparison
plugins/mod_s2s.lua @ 11670:7f6c816a2c09
mod_s2s: Log debug message on attempted close of an connectionless session
This should probably never happen, but probably does anyways.
A debug message would show the truth of the matter.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 Jul 2021 12:41:32 +0200 |
parent | 11669:bca75f34d374 |
child | 11678:f90a337d81a8 |
comparison
equal
deleted
inserted
replaced
11669:bca75f34d374 | 11670:7f6c816a2c09 |
---|---|
551 -- remote_reason: stream error received from the remote server | 551 -- remote_reason: stream error received from the remote server |
552 -- bounce_reason: stanza error to pass to bounce_sendq because stream- and stanza errors are different | 552 -- bounce_reason: stanza error to pass to bounce_sendq because stream- and stanza errors are different |
553 local function session_close(session, reason, remote_reason, bounce_reason) | 553 local function session_close(session, reason, remote_reason, bounce_reason) |
554 local log = session.log or log; | 554 local log = session.log or log; |
555 if not session.conn then | 555 if not session.conn then |
556 log("debug", "Attempt to close without associated connection with reason %q", reason); | |
556 return | 557 return |
557 end | 558 end |
558 | 559 |
559 local conn = session.conn; | 560 local conn = session.conn; |
560 conn:pause_writes(); -- until :close | 561 conn:pause_writes(); -- until :close |