mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)

Mon, 19 Sep 2016 19:36:19 +0200

author
Kim Alvefur <zash@zash.se>
date
Mon, 19 Sep 2016 19:36:19 +0200
changeset 2301
d7c014f91189
parent 2300
dded110af017
child 2302
12249570352f

mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)

mod_statistics/mod_statistics.lua file | annotate | diff | comparison | revisions
--- 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;

mercurial