0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
Cross-platform JavaScript runtime environment https://nodejs.org/
Go to file
Fedor Indutny db5ee0b3de child_process: do not keep list of sent sockets
Keeping list of all sockets that were sent to child process causes memory
leak and thus unacceptable (see #4587). However `server.close()` should
still work properly.

This commit introduces two options:

* child.send(socket, { track: true }) - will send socket and track its status.
  You should use it when you want `server.connections` to be a reliable
  number, and receive `close` event on sent sockets.
* child.send(socket) - will send socket without tracking it status. This
  performs much better, because of smaller number of RTT between master and
  child.

With both of these options `server.close()` will wait for all sent
sockets to get closed.
2013-01-17 13:46:31 -08:00
benchmark buffer: floating point read/write improvements 2013-01-16 10:17:20 -08:00
deps deps: upgrade libuv to 4ba03dd 2013-01-16 23:38:02 +01:00
doc child_process: do not keep list of sent sockets 2013-01-17 13:46:31 -08:00
lib child_process: do not keep list of sent sockets 2013-01-17 13:46:31 -08:00
src deps: upgrade libuv to 4ba03dd 2013-01-16 23:38:02 +01:00
test child_process: do not keep list of sent sockets 2013-01-17 13:46:31 -08:00
tools windows: add support for '_Total' perf counters 2013-01-11 22:24:48 +01:00
.gitattributes
.gitignore gitignore: ignore perf data files 2013-01-14 13:06:29 +01:00
.mailmap Update AUTHORS and .mailmap 2012-10-10 23:14:55 +02:00
.travis.yml test: add .travis.yml for testing on Travis CI 2011-12-05 16:50:55 -08:00
AUTHORS 2013.01.11, Version 0.9.6 (Unstable) 2013-01-11 10:49:21 -08:00
BSDmakefile
ChangeLog 2013.01.11, Version 0.9.6 (Unstable) 2013-01-11 10:49:21 -08:00
common.gypi build: disable use of thin archive 2012-11-21 14:06:37 +01:00
configure configure: define "arm_fpu" and "arm_neon" for ARM 2013-01-10 17:13:59 -08:00
CONTRIBUTING.md doc: add CONTRIBUTING.md 2012-12-31 01:50:48 +01:00
LICENSE buffer: floating point read/write improvements 2013-01-16 10:17:20 -08:00
Makefile Merge remote-tracking branch 'ry/v0.8' into master 2013-01-11 10:18:07 -08:00
node.gyp buffer: floating point read/write improvements 2013-01-16 10:17:20 -08:00
README.md doc: document prerequisites in README 2012-09-02 13:32:57 +02:00
vcbuild.bat windows: improve Visual Studio Express build support 2013-01-03 23:38:25 +01:00

Evented I/O for V8 javascript. Build Status

To build:

Prerequisites (Unix only):

* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Unix/Macintosh:

./configure
make
make install

Windows:

vcbuild.bat

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers