comparison 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
comparison
equal deleted inserted replaced
2300:dded110af017 2301:d7c014f91189
92 92
93 function listener.ondisconnect(conn) 93 function listener.ondisconnect(conn)
94 sessions[conn] = nil; 94 sessions[conn] = nil;
95 end 95 end
96 96
97 function listener.onreadtimeout()
98 return true;
99 end
100
97 function module.load() 101 function module.load()
98 if not(prosody and prosody.arg) then 102 if not(prosody and prosody.arg) then
99 return; 103 return;
100 end 104 end
101 filters.add_filter_hook(stats.filter_hook); 105 filters.add_filter_hook(stats.filter_hook);