Without a SetReadDeadline, a silently dead WebSocket (e.g. Cloudflare dropping the connection without a close frame) would block readLoop forever. The daemon would appear connected but never receive tasks, and never fall back to HTTP polling. - Send RFC 6455 pings every 30s (resets Cloudflare's idle timer) - SetReadDeadline of 45s, refreshed on every pong and text message - SetWriteDeadline of 10s on all writes to prevent blocked sends - On timeout, readLoop emits "disconnected" → HybridTransport falls back to HTTP and starts WS reconnection loop |
||
|---|---|---|
| .. | ||
| agent | ||
| arr | ||
| cmd | ||
| config | ||
| engine | ||
| library | ||
| mediaserver | ||
| parser | ||
| sentry | ||
| ui | ||
| upgrade | ||
| usenet | ||