Merge 0.9->trunk

This commit is contained in:
Kim Alvefur 2013-06-09 17:03:15 +02:00
commit 0086d5819d

View file

@ -263,7 +263,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
if socket:getfd() >= _maxfd then
out_error("server.lua: Disallowed FD number: "..socket:getfd()) -- PROTIP: Switch to libevent
socket:close( ) -- Should we send some kind of error here?
if server then
server.pause( )
end
return nil, nil, "fd-too-large"
end
socket:settimeout( 0 )