diff options
author | Kim Alvefur <zash@zash.se> | 2014-10-03 14:42:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-10-03 14:42:18 +0200 |
commit | edc34e6635f65e78e247bece543d91e474c25361 (patch) | |
tree | 793d56d0857e8289a7b0397e73096ef086eae50e /net | |
parent | 0248de1595fa28f39cd99c9fe5ee46f7834d8488 (diff) | |
download | prosody-edc34e6635f65e78e247bece543d91e474c25361.tar.gz prosody-edc34e6635f65e78e247bece543d91e474c25361.zip |
net.server_select: Reset read timeout timer if the event is handled
Diffstat (limited to 'net')
-rw-r--r-- | net/server_select.lua | 2 |
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 |