forked from svrjs/svrjs
Improve Bun shim
This commit is contained in:
parent
2ec6b564f5
commit
b39471e8b8
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
"port": 80,
|
||||
"pubport": 80,
|
||||
"page404": "404.html",
|
||||
"timestamp": 1694363783457,
|
||||
"timestamp": 1694365030044,
|
||||
"blacklist": [],
|
||||
"nonStandardCodes": [],
|
||||
"enableCompression": true,
|
||||
|
|
4
svr.js
4
svr.js
|
@ -289,6 +289,10 @@ if (!singlethreaded) {
|
|||
newWorker.send(message, fakeParam2, fakeParam3, fakeParam4, tries + 1);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
newWorker.on("exit", function () {
|
||||
delete cluster.workers[newWorker.id];
|
||||
});
|
||||
}
|
||||
|
||||
cluster.workers[newWorker.id] = newWorker;
|
||||
|
|
Reference in a new issue