diff options
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 |