# HG changeset patch # User Kim Alvefur # Date 1412340138 -7200 # Node ID ba421af3dfd30069751bbbcc37f1eb574efbf890 # Parent f906b803dc42fea1f6615f9465d152f8f282659f net.server_select: Reset read timeout timer if the event is handled diff -r f906b803dc42 -r ba421af3dfd3 net/server_select.lua --- 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