diff options
author | Kim Alvefur <zash@zash.se> | 2016-10-08 14:07:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-10-08 14:07:07 +0200 |
commit | 9337b2a991c0a55ff6d3ec6d4ea7601978369cf2 (patch) | |
tree | dc26e2c252778e455c295025d23ede402c55559c /net | |
parent | 92730073ce30a57c8a2dd673f239a7430845b2d4 (diff) | |
download | prosody-9337b2a991c0a55ff6d3ec6d4ea7601978369cf2.tar.gz prosody-9337b2a991c0a55ff6d3ec6d4ea7601978369cf2.zip |
net.server_event: Restore destruction of socket on read timeout (lost since e67891ad18d6) (thanks Ge0rG)
Diffstat (limited to 'net')
-rw-r--r-- | net/server_event.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 2cb45553..43a19fe9 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -561,6 +561,10 @@ local function handleclient( client, ip, port, server, pattern, listener, sslctx return -1 end if EV_TIMEOUT == event and not interface.conn:dirty() and interface:onreadtimeout() ~= true then + interface.fatalerror = "timeout during receiving" + debug( "connection failed:", interface.fatalerror ) + interface:_close() + interface.eventread = nil return -1 -- took too long to get some data from client -> disconnect end if interface._usingssl then -- handle luasec |