[Bug] dsh-client-connection streamOpenTimeoutMs=3000 causes "Signal timed out" on slow/remote links #3413
Replies: 1 comment
|
I traced this against the pinned rc.7 source ( Also, the literal I wrote up the source-backed lifecycle, capture timeline, and regression matrix here: https://sandbaseai.github.io/deepseek-harness-handbook/remote-web-secure-context.html Relevant source: deepseek-harness/packages/client/connection/src/client/connection.ts Lines 108 to 151 in 99f6f02 |
Uh oh!
There was an error while loading. Please reload this page.
Environment: dsh web 0.1.0-rc.6 served through a remote tunnel (Tailscale / Cloudflare), phone browser.
Problem:
CONNECTION_DEFAULTS.streamOpenTimeoutMs = 3000— the client aborts the /api/events.mux and /api/events.host stream open after 3 seconds. On slow remote links (mobile VPN / relay) the WebSocket/SSE handshake can take longer than 3s but would succeed; the client hard-fails with "Signal timed out" and the session history fails to load ("历史加载失败"), even though the connection is healthy.Suggested fix: make the timeout configurable (server-provided or client setting) and/or raise the default (e.g., 15s). Verified that raising it to 15s resolves the failure on a slow mobile link.
All reactions