Mercurial > prosody-modules
diff mod_statistics/mod_statistics.lua @ 2301:d7c014f91189
mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 19 Sep 2016 19:36:19 +0200 |
parents | 4713f9d453ec |
children | 66bda434d476 |
line wrap: on
line diff
--- 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;