aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-08 21:07:12 +0200
committerKim Alvefur <zash@zash.se>2016-10-08 21:07:12 +0200
commit0c1aa9cb856c26477832bfd643b9bbd083e6ab09 (patch)
tree5fe55261102b6924bf57aac6168934e490359956 /net/server_event.lua
parente3232fbc9185dd2ccb0bba74d3f5f1fcbd2013ed (diff)
parent992f00f3781dd4b34aa177376cdd8a459d3020b4 (diff)
downloadprosody-0c1aa9cb856c26477832bfd643b9bbd083e6ab09.tar.gz
prosody-0c1aa9cb856c26477832bfd643b9bbd083e6ab09.zip
Merge 0.10->trunk
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index c10173e4..fc3bde9f 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