projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
377992b
)
net.server_select: Reset read timeout timer if the event is handled
author
Kim Alvefur
<zash@zash.se>
Fri, 3 Oct 2014 12:42:18 +0000
(14:42 +0200)
committer
Kim Alvefur
<zash@zash.se>
Fri, 3 Oct 2014 12:42:18 +0000
(14:42 +0200)
net/server_select.lua
patch
|
blob
|
history
diff --git
a/net/server_select.lua
b/net/server_select.lua
index 33c18a606140b316ecc55045104bac1750e683a7..486e953b6cb0269f3c1eb94b762fdc5be118e912 100644
(file)
--- 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