Download src/agents/embedded-agent-runner/run/attempt-http-runtime.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 802 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/embedded-agent-runner/run/attempt-http-runtime.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/embedded-agent-runner/run/attempt-http-runtime.ts
-
curl -L -o attempt-http-runtime.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/embedded-agent-runner/run/attempt-http-runtime.ts
802 Bytes
| /** | |
| * Configures HTTP timeout defaults for embedded-agent attempt runtime calls. | |
| */ | |
| import { | |
| DEFAULT_UNDICI_STREAM_TIMEOUT_MS, | |
| ensureGlobalUndiciDispatcherStreamTimeouts, | |
| ensureGlobalUndiciEnvProxyDispatcher, | |
| } from "../../../infra/net/undici-global-dispatcher.js"; | |
| /** Configures process-wide Undici proxy and stream timeout behavior for one embedded attempt. */ | |
| export function configureEmbeddedAttemptHttpRuntime(params: { timeoutMs: number }): void { | |
| // Proxy bootstrap must happen before timeout tuning so the timeouts wrap the | |
| // active EnvHttpProxyAgent instead of being replaced by a bare proxy dispatcher. | |
| ensureGlobalUndiciEnvProxyDispatcher(); | |
| ensureGlobalUndiciDispatcherStreamTimeouts({ | |
| timeoutMs: Math.max(params.timeoutMs, DEFAULT_UNDICI_STREAM_TIMEOUT_MS), | |
| }); | |
| } | |