@jeffusion/bungee 5.23.2 → 5.23.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 +7 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3397,7 +3397,7 @@ import { createInterface } from "node:readline";
|
|
|
3397
3397
|
// package.json
|
|
3398
3398
|
var package_default = {
|
|
3399
3399
|
name: "@jeffusion/bungee",
|
|
3400
|
-
version: "5.23.
|
|
3400
|
+
version: "5.23.3",
|
|
3401
3401
|
description: "High-performance reverse proxy server CLI",
|
|
3402
3402
|
type: "module",
|
|
3403
3403
|
bin: {
|
|
@@ -3846,6 +3846,7 @@ var execFile = promisify(nodeExecFile);
|
|
|
3846
3846
|
var PROBE_TIMEOUT_MS = 5000;
|
|
3847
3847
|
var EXEC_OPTIONS = { timeout: PROBE_TIMEOUT_MS, killSignal: "SIGKILL", maxBuffer: 64 * 1024, windowsHide: true };
|
|
3848
3848
|
var PS_OPTIONS = { ...EXEC_OPTIONS, env: { ...process.env, LC_ALL: "C", LANG: "C" } };
|
|
3849
|
+
var PROCESS_LIST_EXEC_OPTIONS = { ...PS_OPTIONS, maxBuffer: 1024 * 1024 };
|
|
3849
3850
|
var MARKER_PREFIX = "--bungee-daemon-boot=";
|
|
3850
3851
|
var UUID2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
3851
3852
|
var TARGET_PROCESS_MISSING_SENTINEL = "__BUNGEE_TARGET_PROCESS_MISSING__";
|
|
@@ -4142,6 +4143,8 @@ function markerResult(status, reason = null) {
|
|
|
4142
4143
|
function markerQueryErrorReason(error) {
|
|
4143
4144
|
const value = error;
|
|
4144
4145
|
const stderr = typeof value.stderr === "string" ? value.stderr.toLowerCase() : "";
|
|
4146
|
+
if (value.code === "ERR_CHILD_PROCESS_STDIO_MAXBUFFER")
|
|
4147
|
+
return "incomplete";
|
|
4145
4148
|
if (value.killed === true || value.code === "ETIMEDOUT" || value.signal === "SIGKILL")
|
|
4146
4149
|
return "query_timeout";
|
|
4147
4150
|
if (value.code === "EACCES" || value.code === "EPERM" || value.code === 5 || value.code === "5" || stderr.includes("access denied") || stderr.includes("access is denied"))
|
|
@@ -4215,11 +4218,11 @@ async function findExactDaemonProcessDetailed(bootNonce, expectedOrOptions, opti
|
|
|
4215
4218
|
}
|
|
4216
4219
|
if (platform === "win32")
|
|
4217
4220
|
return await windowsMarkerProcess(bootNonce, expected, options);
|
|
4218
|
-
const { stdout } = await (options.execFile ?? execFile)("ps", ["-ww", "-axo", "command="],
|
|
4221
|
+
const { stdout } = await (options.execFile ?? execFile)("ps", ["-ww", "-axo", "command="], PROCESS_LIST_EXEC_OPTIONS);
|
|
4219
4222
|
return markerResult(stdout.toString().split(`
|
|
4220
4223
|
`).some((line) => exactBootMarker(parseCommandLine(line.trim(), platform), bootNonce)) ? "found" : "none");
|
|
4221
|
-
} catch {
|
|
4222
|
-
return markerResult("unknown");
|
|
4224
|
+
} catch (error) {
|
|
4225
|
+
return markerResult("unknown", markerQueryErrorReason(error));
|
|
4223
4226
|
}
|
|
4224
4227
|
}
|
|
4225
4228
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffusion/bungee",
|
|
3
|
-
"version": "5.23.
|
|
3
|
+
"version": "5.23.3",
|
|
4
4
|
"description": "High-performance reverse proxy server CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test": "bun test"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@jeffusion/bungee-core": "^5.23.
|
|
17
|
-
"@jeffusion/bungee-types": "^5.23.
|
|
16
|
+
"@jeffusion/bungee-core": "^5.23.3",
|
|
17
|
+
"@jeffusion/bungee-types": "^5.23.3",
|
|
18
18
|
"cli-progress": "^3.12.0",
|
|
19
19
|
"commander": "^14.0.1"
|
|
20
20
|
},
|