aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-10-03 14:42:18 +0200
committerKim Alvefur <zash@zash.se>2014-10-03 14:42:18 +0200
commit89344e5323936c43155c053788566e155eb8b53b (patch)
tree793d56d0857e8289a7b0397e73096ef086eae50e
parentac374d038e0e64e0b226f3ccce0b89269db35538 (diff)
downloadprosody-89344e5323936c43155c053788566e155eb8b53b.tar.gz
prosody-89344e5323936c43155c053788566e155eb8b53b.zip
net.server_select: Reset read timeout timer if the event is handled
-rw-r--r--net/server_select.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 33c18a60..486e953b 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -886,6 +886,8 @@ loop = function(once) -- this is the main loop of the program
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