comparison mod_s2s_smacks_timeout/README.md @ 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
parents
children 78368d2865dd
comparison
equal deleted inserted replaced
4980:da151f9af861 4981:f0fe95f9e21c
1 # Introduction
2
3 This module closes s2s connections when
4 [mod_smacks][doc:modules:mod_smacks] reports that a connection has not
5 received a timely acknowledgement as requested, indicating that the
6 connection is broken or the remote server is not responding.
7
8 With the connection closed, the next stanza to be directed to that
9 server will trigger Prosody to establish a new connection, instead of
10 queueing it on the potentially broken connection.
11
12 This should prevent messages from being stuck in a queue for a
13 potentially long time before being bounced back to the sender as
14 delivery failure reports.
15
16 Normally the amount of time it takes for a broken connection to time out
17 is determined by TCP.
18
19 If this is deemed sensible behavior then it will likely be merged into
20 Prosody itself somewhere.