net: fix listen() regression, revert patches
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 6 Aug 2012 21:43:47 +0000 (23:43 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 6 Aug 2012 21:55:38 +0000 (23:55 +0200)
commit4c150ca0d0cc4bd8dc6d182e0bf850daf27a2422
tree4fa2c2398d1f5069815a45b6e114c2f1cc3e7db2
parent7b367a93ce126d4bf5a56e10ee44613c59ffbe84
net: fix listen() regression, revert patches

This commit reverts the following commits (in reverse chronological order):

  74d076c errnoException must be done immediately
  ddb02b9 net: support Server.listen(Pipe)
  085a098 cluster: do not use internal server API
  d138875 net: lazy listen on handler

Commit d138875 introduced a backwards incompatible change that broke the
simple/test-net-socket-timeout and simple/test-net-lazy-listen tests - it
defers listening on the target port until the `net.Server` instance has at
least one 'connection' event listener.

The other patches had to be reverted in order to revert d138875.

Fixes #3832.
doc/api/child_process.markdown
doc/api/net.markdown
lib/child_process.js
lib/cluster.js
lib/net.js
test/simple/test-cluster-basic.js
test/simple/test-net-lazy-listen.js [deleted file]