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