@staff0rd/assist 0.305.2 → 0.305.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.305.
|
|
9
|
+
version: "0.305.3",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -19227,6 +19227,7 @@ function windowsDaemonHost() {
|
|
|
19227
19227
|
function connectToWindowsDaemon() {
|
|
19228
19228
|
return new Promise((resolve16, reject) => {
|
|
19229
19229
|
const socket = net2.connect(windowsDaemonPort(), windowsDaemonHost());
|
|
19230
|
+
socket.setKeepAlive(true, 1e4);
|
|
19230
19231
|
socket.once("connect", () => resolve16(socket));
|
|
19231
19232
|
socket.once("error", reject);
|
|
19232
19233
|
});
|
|
@@ -20416,9 +20417,10 @@ function startDaemonServer(manager, checkAutoExit) {
|
|
|
20416
20417
|
}
|
|
20417
20418
|
function startWindowsBridge(manager) {
|
|
20418
20419
|
const port = windowsDaemonPort();
|
|
20419
|
-
const bridge = net3.createServer(
|
|
20420
|
-
|
|
20421
|
-
|
|
20420
|
+
const bridge = net3.createServer((socket) => {
|
|
20421
|
+
socket.setKeepAlive(true, 1e4);
|
|
20422
|
+
handleConnection(socket, manager);
|
|
20423
|
+
});
|
|
20422
20424
|
bridge.on(
|
|
20423
20425
|
"error",
|
|
20424
20426
|
(e) => daemonLog(`windows bridge error: ${e.message}`)
|