背景
#9 定义了 tunnel 帧协议。Gateway 需要在 Console ↔ Worker 之间按 stream id 透传。
范围
In:
- Console 发起的 tunnel 帧按 session 路由到对应 Worker 的 SignalR 连接
- Worker 回传的帧按 stream id 路由回发起方 Console
- stream id 注册表,处理 stream 重置、客户端断连清理
- 限流 / 鉴权:只有 session 创建者能开 tunnel,单 session 同时 tunnel 数上限可配置
- 审计日志:记录 tunnel open / close / 字节数(接入现有 audit pipeline)
Out:
验收
- 多个并发 tunnel 互不串流
- Console 突然断线后 Gateway 主动给 Worker 发 close
- 审计能查到某 session 开过哪些 tunnel
背景
#9 定义了 tunnel 帧协议。Gateway 需要在 Console ↔ Worker 之间按 stream id 透传。
范围
In:
Out:
验收