node/test
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
..
addons test: update addons .gitignore 2012-05-24 14:07:09 +02:00
disabled Merge remote-tracking branch 'ry/v0.6' into master 2012-04-18 11:57:54 -07:00
fixtures module: add filename to require() json errors 2012-07-06 15:26:41 -07:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet Revert "DNS: Support NAPTR queries" 2012-06-16 11:02:49 -07:00
message Update message test for new v8 behavior 2012-06-14 08:37:44 -07:00
pummel test: make test-fs-watch-file write to tmp dir 2012-07-09 15:48:43 +02:00
simple cluster: fix libuv assert in net.listen() 2012-07-29 02:07:16 +02:00
common.js typed arrays: add Uint8ClampedArray 2012-03-28 22:57:15 +02:00