Ryan Dahl ad4fb5319b Do not spin on aceept() with EMFILE
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.
2010-10-24 12:25:04 -07:00
2010-10-23 18:27:59 -07:00
2010-06-23 20:05:29 -07:00
2010-10-24 12:25:04 -07:00
2010-10-23 18:30:04 -07:00
2010-10-23 18:27:52 -07:00
2010-10-02 06:05:56 -07:00
2010-10-02 06:05:56 -07:00
2010-05-11 10:25:27 -07:00
2010-10-23 18:27:59 -07:00
2010-07-14 09:50:17 -07:00
2010-09-17 11:11:47 -07:00

Evented I/O for V8 javascript.

To build:

  ./configure
  make 
  make install

To run the tests:
  
  make test

To build the documentation:

  make doc
 
To read the documentation:

  man doc/node.1

See http://nodejs.org/ for more information. For help and discussion
subscribe to the mailing list by visiting
http://groups.google.com/group/nodejs or by sending an email to
nodejs+subscribe@googlegroups.com.
Languages
JavaScript 65.4%
C++ 22.6%
Python 8.4%
C 2.1%
HTML 0.5%
Other 0.8%