fix(websocket): settle failed sends and enforce SDK request deadlines

Settle queued sends once when a connection fails or closes before opening,
and reject further sends while preserving the original failure.

Include connection waits in SDK request deadlines without closing shared
connections or sending expired actions after a late connection.

Refs #665
Refs #666
This commit is contained in:
DrSmoothl committed 2026-11-07 12:57:25 +08:00
1 parent 9edc255a02
commit 87f7bd8c54
7 files changed
+442 -103

No files matched your search

+3
View File
@@ -375,6 +375,9 @@ await status;
```
`timeoutMs: 0` 表示关闭该请求的超时控制。
WebSocket 普通请求的超时从调用时开始,包含等待连接建立和等待响应的总时间,
连接成功后不会重新计时。等待连接时已超时或取消的请求不会在连接晚到后补发;
取消单个请求不会关闭其他请求正在使用或等待的共享连接。
## 错误处理