1
0
Fork 0
forked from svrjs/svrjs

Improve Bun shim

This commit is contained in:
Dorian Niemiec 2023-09-10 18:58:05 +02:00
parent 2ec6b564f5
commit b39471e8b8
2 changed files with 5 additions and 1 deletions

View file

@ -3,7 +3,7 @@
"port": 80,
"pubport": 80,
"page404": "404.html",
"timestamp": 1694363783457,
"timestamp": 1694365030044,
"blacklist": [],
"nonStandardCodes": [],
"enableCompression": true,

4
svr.js
View file

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