Changeset

6459:ba421af3dfd3

net.server_select: Reset read timeout timer if the event is handled
author Kim Alvefur <zash@zash.se>
date Fri, 03 Oct 2014 14:42:18 +0200
parents 6458:f906b803dc42
children 6460:6d3187f24608
files net/server_select.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Sun Sep 28 23:03:03 2014 +0200
+++ b/net/server_select.lua	Fri Oct 03 14:42:18 2014 +0200
@@ -886,6 +886,8 @@
 					if not(handler.onreadtimeout) or handler:onreadtimeout() ~= true then
 						handler.disconnect( )( handler, "read timeout" )
 						handler:close( )	-- forced disconnect?
+					else
+						_readtimes[ handler ] = _currenttime -- reset timer
 					end
 				end
 			end