From 24184345688e1f545ffc87e5742de06ed9855007 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 28 Aug 2012 00:26:29 +0200 Subject: [PATCH] windows: fix single-accept mode for shared server sockets --- lib/child_process.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/child_process.js b/lib/child_process.js index 5b0c3f318bc..215da0bebd3 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -313,7 +313,8 @@ function setupChannel(target, channel) { var obj = handleConversion[message.type]; // Update simultaneous accepts on Windows - if (obj.simultaneousAccepts) { + if (process.platform === 'win32') { + handle._simultaneousAccepts = false; net._setSimultaneousAccepts(handle); }