changeset 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 dded110af017
children 12249570352f
files mod_statistics/mod_statistics.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;