mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
Merge 0.9->trunk
This commit is contained in:
commit
0086d5819d
1 changed files with 3 additions and 1 deletions
|
@ -263,7 +263,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
|
||||||
if socket:getfd() >= _maxfd then
|
if socket:getfd() >= _maxfd then
|
||||||
out_error("server.lua: Disallowed FD number: "..socket:getfd()) -- PROTIP: Switch to libevent
|
out_error("server.lua: Disallowed FD number: "..socket:getfd()) -- PROTIP: Switch to libevent
|
||||||
socket:close( ) -- Should we send some kind of error here?
|
socket:close( ) -- Should we send some kind of error here?
|
||||||
server.pause( )
|
if server then
|
||||||
|
server.pause( )
|
||||||
|
end
|
||||||
return nil, nil, "fd-too-large"
|
return nil, nil, "fd-too-large"
|
||||||
end
|
end
|
||||||
socket:settimeout( 0 )
|
socket:settimeout( 0 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue