Diff

net/server_select.lua @ 7096:95e4c81291cc

server_select: Pause and mark server as full if accepting a client fails (fixes #597)
author Kim Alvefur <zash@zash.se>
date Fri, 22 Jan 2016 02:00:27 +0100
parent 7095:3e1dac35af87
child 7097:5a71aaa2c542
line wrap: on
line diff
--- 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