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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maxpool",
3
- "version": "1.24.46",
3
+ "version": "1.24.47",
4
4
  "description": "Multi-account Claude Code proxy with adaptive, rate-aware load balancing across Claude accounts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
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(), 15_000);
797
+ const linkTtfb = setTimeout(() => linkCtl.abort(), linkTtfbMs);
794
798
  res.once('close', () => linkCtl.abort());
795
799
  let upRes;
796
800
  try {