Software /
code /
prosody-modules
Comparison
mod_s2s_keepalive/mod_s2s_keepalive.lua @ 3770:ae34ee0867f0
mod_s2s_keepalive: Mark ping response event as handled
Silences a debug message about the response being discarded.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 Dec 2019 15:49:41 +0100 |
parent | 3769:ce1a32aa8bca |
child | 3771:98e1e3ce307d |
comparison
equal
deleted
inserted
replaced
3769:ce1a32aa8bca | 3770:ae34ee0867f0 |
---|---|
63 origin.watchdog_keepalive:reset(); | 63 origin.watchdog_keepalive:reset(); |
64 end | 64 end |
65 if s2sout[origin.from_host] and s2sout[origin.from_host].watchdog_keepalive then | 65 if s2sout[origin.from_host] and s2sout[origin.from_host].watchdog_keepalive then |
66 s2sout[origin.from_host].watchdog_keepalive:reset(); | 66 s2sout[origin.from_host].watchdog_keepalive:reset(); |
67 end | 67 end |
68 return true; | |
68 end); | 69 end); |
69 | 70 |
70 module:hook("iq-error/host/keepalive", function (event) | 71 module:hook("iq-error/host/keepalive", function (event) |
71 local origin = event.origin; | 72 local origin = event.origin; |
72 if origin.dummy then return end -- Probably a sendq bounce | 73 if origin.dummy then return end -- Probably a sendq bounce |