diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2014-02-24 09:28:49 -0800 |
---|---|---|
committer | Alexis Campailla <alexis@janeasystems.com> | 2014-02-24 12:22:35 -0800 |
commit | a1fc0fc23a42c3b66544f4a4f337af610f83dfcc (patch) | |
tree | 02a0a136d26391bb24d142f32f0ba62479e3eaa7 | |
parent | 440b9e2245740af0168cf27c1af6bc681bbe5754 (diff) | |
download | node-a1fc0fc23a42c3b66544f4a4f337af610f83dfcc.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.js | 3 |
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') { |