windows: fix single-accept mode for shared server sockets

This commit is contained in:
Bert Belder 2012-08-28 00:26:29 +02:00
parent 2786737417
commit 2418434568

View File

@ -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);
}