mod_s2s: Close connection on smacks timeout

This merges the mod_s2s_smacks_timeout behavior from prosody-modules

This event is fired by mod_smacks when the connection has not responded
to an ack-request for a period of time defaulting to 30 seconds,
indicating that the connection has become stuck or non-responsive.
Closing it prevents routing further messages via this connection and
frees resources. A stuck connection may otherwise remain until for a
time determined by the OS TCP subsystem, which can be quite long.
This commit is contained in:
Kim Alvefur 2023-12-02 20:20:05 +01:00
parent 3fbec27699
commit e5aa2c3385
2 changed files with 7 additions and 0 deletions

View file

@ -55,6 +55,7 @@ TRUNK
- Forwarded header from RFC 7239 supported, disabled by default
- mod_http_file_share now uses roles framework, affecting access from e.g. components
- Intervals of mod_cron managed periodic jobs made configurable
- When mod_smacks is enabled, s2s connections not responding to ack requests are closed.
## Removed