From a1fc0fc23a42c3b66544f4a4f337af610f83dfcc Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Mon, 24 Feb 2014 09:28:49 -0800 Subject: net: fix listening on FDs on Windows 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. --- lib/net.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') 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') { -- cgit v1.2.1