mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
0ac2ef924f
When a server hit EMFILE it would continue to try to accept new connections from the queue. This patch introduces a timeout of one second where it will stop trying to accept new files. After the second is over it tries again. This is a rather serious bug that has been effecting many highly concurrent programs. It was introduced in 4593c0, version v0.2.0. TODO: A test for this situation. Currently I test it like this termA% cd projects/node termA% ulimit -n 256 termA% ./node benchmark/idle_server.js termB% cd projects/node termB% ./node benchmark/idle_clients.js And watch how the server process behaves. |
||
---|---|---|
.. | ||
assert.js | ||
buffer.js | ||
child_process.js | ||
constants.js | ||
crypto.js | ||
dgram.js | ||
dns.js | ||
events.js | ||
freelist.js | ||
fs.js | ||
http.js | ||
net.js | ||
path.js | ||
querystring.js | ||
readline.js | ||
repl.js | ||
stream.js | ||
string_decoder.js | ||
sys.js | ||
url.js | ||
util.js |