maxpool 1.24.46 → 1.24.47
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/package.json +1 -1
- package/src/server.js +6 -2
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -788,9 +788,13 @@ async function forwardRequest(
|
|
|
788
788
|
};
|
|
789
789
|
try {
|
|
790
790
|
// P4a: a blackholed link must not hang the request (and hold a lease) for
|
|
791
|
-
// minutes — bound time-to-headers like the direct path's TTFB guard.
|
|
791
|
+
// minutes — bound time-to-headers like the direct path's TTFB guard. GLM
|
|
792
|
+
// thinking turns regularly sit silent 20-60s before headers, so the link
|
|
793
|
+
// TTFB must match the direct path's UPSTREAM_TTFB_MS (120s default), not a
|
|
794
|
+
// flat 15s (owner report 2026-10-30: every pinned GLM turn 502-aborted).
|
|
795
|
+
const linkTtfbMs = Math.max(15_000, Number(process.env.MAXPOOL_LINK_TTFB_MS) || UPSTREAM_TTFB_MS);
|
|
792
796
|
const linkCtl = new AbortController();
|
|
793
|
-
const linkTtfb = setTimeout(() => linkCtl.abort(),
|
|
797
|
+
const linkTtfb = setTimeout(() => linkCtl.abort(), linkTtfbMs);
|
|
794
798
|
res.once('close', () => linkCtl.abort());
|
|
795
799
|
let upRes;
|
|
796
800
|
try {
|