Node.js JavaScript runtime 🐢🚀
 
 
 
 
 
 
Go to file
Ben Noordhuis aa0650f444 cluster: fix libuv assert in net.listen()
Problem: calling `server.listen()` (no port) on a net.Server triggered the
following libuv assertion:

  node: ../deps/uv/src/unix/stream.c:406: uv__write: Assertion `fd_to_send >= 0'
  failed.

Cause: uv_tcp_t handles are lazily initialized. Omitting the port made the
handle get initialized even more lazily. Too lazily - it wasn't initialized
when the handle was sent over to the child process.

Solution: implicitly bind to a random port in listen() when the port number
is omitted, it forces the handle to initialize. This is not a change in
behavior, listen() has always been identical to listen(0).

Fixes #3325.
2012-07-29 02:07:16 +02:00
benchmark benchmark: add single process tls connection benchmark 2012-07-14 01:43:34 +02:00
deps deps: upgrade libuv to 4fe1916 2012-07-28 16:50:55 +02:00
doc Blog post for 0.8.4 2012-07-25 10:38:41 -07:00
lib cluster: fix libuv assert in net.listen() 2012-07-29 02:07:16 +02:00
src node: use variadic functions in ev-emul.h 2012-07-28 14:10:13 +02:00
test cluster: fix libuv assert in net.listen() 2012-07-29 02:07:16 +02:00
tools tools: speed up genv8constants 2012-07-18 00:56:02 +02:00
.gitattributes Explicitly disable cr/lf conversion for test fixtures 2011-08-10 19:59:37 +02:00
.gitignore .gitignore: Don't ignore node_modules (breaks npm) 2012-07-10 16:16:43 -07:00
.mailmap Add a .mailmap file, and clean up AUTHORS somewhat 2012-07-09 16:55:09 +02:00
.travis.yml test: add `.travis.yml` for testing on Travis CI 2011-12-05 16:50:55 -08:00
AUTHORS 2012.07.25, Version 0.8.4 (Stable) 2012-07-24 17:06:58 -07:00
BSDmakefile Tell BSD users to run `gmake` instead. 2011-07-11 14:17:23 +02:00
ChangeLog 2012.07.25, Version 0.8.4 (Stable) 2012-07-24 17:06:58 -07:00
LICENSE Update npm's license 2012-06-18 18:08:45 -07:00
Makefile Merge branch 'v0.8.4-release' into v0.8 2012-07-25 10:26:03 -07:00
README.md doc: build requires GNU make 3.81+ 2012-07-18 14:23:39 +02:00
common.gypi build: unbreak ustack on smartos 2012-07-19 18:20:34 +02:00
configure build: improve armv7 / hard-float detection 2012-07-26 23:38:34 +02:00
node.gyp always link sunos builds with libumem 2012-07-27 11:03:26 -07:00
vcbuild.bat vcbuild.bat: add duplicate arg-ok label to work around cmd.exe bug 2012-06-14 00:56:43 +02:00

README.md

Evented I/O for V8 javascript. Build Status

To build:

Unix/Macintosh. Requires python 2.6 or 2.7 and GNU make 3.81 or newer:

./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