node/lib
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
..
_debugger.js Remove octal escape sequences and avoid reserved keyword 2012-07-06 19:28:35 -07:00
_linklist.js Update copyright headers 2011-03-14 17:37:05 -07:00
assert.js assert: remove unnecessary use of __proto__ 2012-07-25 10:41:08 -07:00
buffer.js Use parent SlowBuffer, if any, when Buffer is sliced 2012-06-21 01:46:04 +02:00
buffer_ieee754.js Fixed a lot of jslint errors. 2011-10-05 18:51:06 -07:00
child_process.js child_process: add .stdin stream to forks 2012-06-19 01:46:28 +04:00
cluster.js Avoid redeclaring variable 2012-07-06 19:28:35 -07:00
console.js console: throw when no such label exists in `console.timeEnd` 2012-04-29 22:27:45 +02:00
constants.js Update copyright headers 2011-03-14 17:37:05 -07:00
crypto.js Merge remote-tracking branch 'ry/v0.6' into v0.6-merge 2012-05-15 11:37:34 -07:00
dgram.js dgram: hook up handle wrap to owning object 2012-05-15 16:56:48 +02:00
dns.js Revert "DNS: Support NAPTR queries" 2012-06-16 11:02:49 -07:00
domain.js domain: Fix stack leak on error 2012-07-16 18:04:55 -07:00
events.js Revert "events: don't delete the listeners array in removeListener()" 2012-07-12 15:43:35 -07:00
freelist.js Update copyright headers 2011-03-14 17:37:05 -07:00
fs.js windows: correctly prep long path for fs.exists(Sync) 2012-07-23 13:55:42 +02:00
http.js https: Use host header as effective servername 2012-07-25 13:38:43 -07:00
https.js Revert "http/https: pass request to .createConnection()" 2012-07-20 20:51:02 +04:00
module.js module: add filename to require() json errors 2012-07-06 15:26:41 -07:00
net.js cluster: fix libuv assert in net.listen() 2012-07-29 02:07:16 +02:00
os.js Add --no-deprecation and --trace-deprecation flags 2012-06-21 12:05:33 -07:00
path.js Add --no-deprecation and --trace-deprecation flags 2012-06-21 12:05:33 -07:00
punycode.js punycode: Update to v1.0.0 2012-02-27 14:03:18 -08:00
querystring.js trivial: Doc typo and lint fix 2012-06-19 14:07:48 -07:00
readline.js readline: Remove event listeners on close 2012-07-24 15:36:53 -07:00
repl.js Move function declaration out of conditional 2012-07-06 19:28:35 -07:00
stream.js stream: don't call `cleanup` twice on `end` and `close` 2012-05-28 01:35:36 +02:00
string_decoder.js string_decoder: added support for UTF-16LE 2012-05-05 22:47:24 +09:00
sys.js Fix #3577 Un-break require('sys') 2012-06-28 10:14:03 -07:00
timers.js timers: fix handling of large timeouts 2012-07-05 23:07:27 +02:00
tls.js tls: pass linting 2012-07-20 22:07:39 +04:00
tty.js Add --no-deprecation and --trace-deprecation flags 2012-06-21 12:05:33 -07:00
url.js Fix #3270 Escape url.parse delims 2012-05-16 15:41:28 -07:00
util.js Use unicode escape sequences instead of octal 2012-07-06 19:28:35 -07:00
vm.js lint 2012-03-03 23:48:57 -08:00
zlib.js domain: the EventEmitter constructor is now always called in nodecore 2012-06-15 09:49:05 -07:00