# HG changeset patch # User Kim Alvefur # Date 1370790026 -7200 # Node ID 4e51ceee469c9911a4838f9e4bb995c1aceaaeaf # Parent aa3465183b01f39cfe5cc9b5473f810360a69fe7 net.server_select: Make sure there is a server to pause when hitting maxfd (Thanks elghinn) diff -r aa3465183b01 -r 4e51ceee469c net/server_select.lua --- a/net/server_select.lua Fri Jun 07 13:22:13 2013 +0100 +++ b/net/server_select.lua Sun Jun 09 17:00:26 2013 +0200 @@ -263,7 +263,9 @@ 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? - server.pause( ) + if server then + server.pause( ) + end return nil, nil, "fd-too-large" end socket:settimeout( 0 )