Compare commits

...

1 Commits

Author SHA1 Message Date
Alexis Campailla
a1fc0fc23a net: fix listening on FDs on Windows
With 3da36fe00e, 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.
2014-02-24 12:22:35 -08:00

View File

@@ -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') {