mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)
authorKim Alvefur <zash@zash.se>
Mon, 19 Sep 2016 19:36:19 +0200
changeset 2305 d7c014f91189
parent 2304 dded110af017
child 2306 12249570352f
mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)
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;