summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Campailla <alexis@janeasystems.com>2014-02-24 09:28:49 -0800
committerAlexis Campailla <alexis@janeasystems.com>2014-02-24 12:22:35 -0800
commita1fc0fc23a42c3b66544f4a4f337af610f83dfcc (patch)
tree02a0a136d26391bb24d142f32f0ba62479e3eaa7
parent440b9e2245740af0168cf27c1af6bc681bbe5754 (diff)
downloadnode-orangemocha-testing.tar.gz
net: fix listening on FDs on Windowsorangemocha-testing
With 3da36fe00e5d85414031ae812e473f16629d8645, I had intended to make createServerHandle always listen to the handle on Windows. Unfortunately, I had missed the code path we take when a file descriptor is passed in. This fixes test-net-listen-fd0.js on Windows.
-rw-r--r--lib/net.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/net.js b/lib/net.js
index 97e45f857..1ed2e86aa 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -1060,8 +1060,7 @@ var createServerHandle = exports._createServerHandle =
handle.open(fd);
handle.readable = true;
handle.writable = true;
- return handle;
-
+ assert(!address && !port);
} else if (port === -1 && addressType === -1) {
handle = createPipe();
if (process.platform === 'win32') {