# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1453424427 -3600
# Node ID 95e4c81291ccd27e81548cd001a5a01eede504bd
# Parent  3e1dac35af87c364b94715f8c0de7ff42629ae95
server_select: Pause and mark server as full if accepting a client fails (fixes #597)

diff -r 3e1dac35af87 -r 95e4c81291cc net/server_select.lua
--- a/net/server_select.lua	Fri Jan 22 01:59:25 2016 +0100
+++ b/net/server_select.lua	Fri Jan 22 02:00:27 2016 +0100
@@ -258,6 +258,8 @@
 			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