You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
when parent process send a socket which have connected to child process,The child process can't read data from socket when the first request incoming,but next
request is OK,my plateform is win7 x64.
my code like this:
parent process:
var net = require('net');
var util = require('util');
var childProcess = require('child_process');
var start = function (options, cb) {
var worker = childProcess.fork("app.js");
server = net.createServer();
server.on("connection", function (socket) {
socket.pause();
try {
worker.send("connect", socket);
} catch (e) {
console.log(e);
}
});
server.listen(8989);
}
start();
child process:
process.on("message", function (msg, socket) {
socket.resume();
socket.on("data",function(data){
console.log(data);
});
});
The text was updated successfully, but these errors were encountered:
I can't reproduce this locally. Closing due to lack of activity & reproducibility. If you have more information, please comment and I'll reopen this issue.
when parent process send a socket which have connected to child process,The child process can't read data from socket when the first request incoming,but next
request is OK,my plateform is win7 x64.
my code like this:
parent process:
child process:
The text was updated successfully, but these errors were encountered: