From d4705117740775570de1cbd3506d00f170e6f07a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 22 Jan 2016 02:00:27 +0100 Subject: server_select: Pause and mark server as full if accepting a client fails (fixes #597) --- net/server_select.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net') diff --git a/net/server_select.lua b/net/server_select.lua index f9d8dba1..891151ac 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -258,6 +258,8 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx ) -- t return; elseif err then -- maybe timeout or something else out_put( "server.lua: error with new client connection: ", tostring(err) ) + handler.pause( ) + _fullservers[ handler ] = _currenttime return false end end -- cgit v1.2.3