Software /
code /
prosody
Diff
net/server_select.lua @ 6459:ba421af3dfd3
net.server_select: Reset read timeout timer if the event is handled
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Oct 2014 14:42:18 +0200 |
parent | 6433:b93402cec1c4 |
child | 6465:ab68bb837fe0 |
child | 6782:ec172dbe9d14 |
line wrap: on
line diff
--- 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