aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
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
commitedc34e6635f65e78e247bece543d91e474c25361 (patch)
tree793d56d0857e8289a7b0397e73096ef086eae50e /net/server_select.lua
parent0248de1595fa28f39cd99c9fe5ee46f7834d8488 (diff)
downloadprosody-edc34e6635f65e78e247bece543d91e474c25361.tar.gz
prosody-edc34e6635f65e78e247bece543d91e474c25361.zip
net.server_select: Reset read timeout timer if the event is handled
Diffstat (limited to 'net/server_select.lua')
-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