Comparison

mod_s2s_smacks_timeout/mod_s2s_smacks_timeout.lua @ 4981:f0fe95f9e21c

mod_s2s_smacks_timeout: Use mod_smacks to close stale s2s connections
author Kim Alvefur <zash@zash.se>
date Wed, 03 Aug 2022 03:14:17 +0200
comparison
equal deleted inserted replaced
4980:da151f9af861 4981:f0fe95f9e21c
1 module:depends("smacks");
2
3 module:hook("smacks-ack-delayed", function (event)
4 if event.origin.type == "s2sin" or event.origin.type == "s2sout" then
5 event.origin:close("connection-timeout");
6 return true;
7 end
8 end);