# HG changeset patch # User Kim Alvefur # Date 1474306579 -7200 # Node ID d7c014f9118960d20c2337e5cd6eb31599adcbc9 # Parent dded110af017b4449d5fe9d021b8a6c2de571918 mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742) diff -r dded110af017 -r d7c014f91189 mod_statistics/mod_statistics.lua --- a/mod_statistics/mod_statistics.lua Sun Sep 18 18:53:09 2016 +0100 +++ b/mod_statistics/mod_statistics.lua Mon Sep 19 19:36:19 2016 +0200 @@ -94,6 +94,10 @@ sessions[conn] = nil; end +function listener.onreadtimeout() + return true; +end + function module.load() if not(prosody and prosody.arg) then return;