dsh-undici-timeout: Configuring an Adjustable undici Direct Connection Channel for DSH LLM Egress

dsh-undici-timeout is a DSH networking tool plugin maintained by mqnu00. It addresses the issues of Node's built-in fetch/undici fixed 10-second connection timeout and repeated handshake retries by wrapping globalThis.fetch on whitelisted domains, using a keep-alive undici Agent with configurable timeout. HTTP/2 is disabled by default, and it detects proxy environments to automatically yield, providing status routing and probes. This article covers key principle points, installation commands, configuration options, and troubleshooting curl examples, and explains its patch nature and applicable scenarios.

Read More
dsh-stream-timeout-fix: Increase undici default timeout to avoid misreporting long silent LLM streams as TRANSPORT

## Introduction to the DSH host plugin dsh-stream-timeout-fix: This plugin replaces the global dispatcher of undici at the process level, extending the default 300-second body/headers timeouts to configurable values. It prevents long silent Server-Sent Events (SSE) streams from failing with TypeError: terminated (UND_ERR_BODY_TIMEOUT) and being categorized as TRANSPORT errors. The plugin is applicable to self-hosted and third-party OpenAI-compatible endpoints, supports GitHub-spec installation, and provides configuration options. It includes verification methods and notes that streamIdleTimeoutMs may need synchronous adjustment for edge cases. The plugin does not implement retry mechanisms, is licensed under MIT, and has not yet been published to npm.

Read More
dsh-undici-timeout-fix: Remove undici 300-second body timeout to avoid interrupting local model prefill

When DSH calls local large models, a prefill exceeding approximately five minutes may fail with a "terminated" error due to Node undici's default bodyTimeout (300s). The dsh-undici-timeout-fix plugin calls setGlobalDispatcher at load time to disable undici's timeout, and documents its distinction from streamIdleTimeoutMs, the installation command, restart requirements, watchdog configuration for local providers, conflicts with proxy environment variables, and verification methods.

Read More