e2eprobe

command
v0.0.0-...-7bbd703 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

e2eprobe 对 LiteTalk 服务端做真实客户端端到端验证: REST 注册/登录(simple 免验证码)→ 取 TURN/STUN 凭证 → WS 信令入房 → Pion PeerConnection(完整 ICE)→ 50pps 哑 RTP 双向收发计数。

与 loadtest 的区别:走真实 JWT 鉴权(不需要 LITETALK_DEV_AUTH), 用于验证公网部署的 REST/WS/UDP 全链路。一次性工具,用完即删。

go run ./cmd/e2eprobe -addr 127.0.0.1:8077 -loopback   # 本机服务端
go run ./cmd/e2eprobe -addr litetalk.example.com -tls   # 域名 + HTTPS/WSS(反代/ACME)
go run ./cmd/e2eprobe -addr 127.0.0.1:8077 -multi-device  # 多设备会话场景(踢线/共存/语音抢占)
go run ./cmd/e2eprobe -addr 127.0.0.1:8077 -presence  # 在线状态场景(好友 online 随连断翻转)
go run ./cmd/e2eprobe -addr 127.0.0.1:8077 -rejoin -loopback  # 重入房场景(离房再入房,B 须恢复收听)

presence 在线状态场景(#11):注册 A/B → 互加好友 → A 连 WS(上线)→ B 侧 REST 好友列表可见 online=true → A 断开 → online 翻 false。

go run ./cmd/e2eprobe -addr 127.0.0.1:8077 -presence

断开走正常关闭:cleanup 会立即 DEL presence:{uid}(秒级离线)。 异常掉线(进程被杀/断网)才走 TTL 过期(90s)路径,探针无法在传输层制造, 该路径由 signal 包单测(心跳续期 + TTL)覆盖。

rejoin 重入房场景(#23):两用户进房互通 RTP → A 离房再进房 → B 必须恢复收听 (新 OnTrack + 该路包计数继续增长)。

go run ./cmd/e2eprobe -addr 127.0.0.1:8077 -rejoin -loopback

B 侧在 channel.peer_left 时拆掉 A 的读取循环(真实客户端 remote.RemovePeer 语义)——SFU 若惰性保留旧下行轨道(#23 根因),A 重入的 RTP 进旧轨道、 B 拿不到新 OnTrack,计数冻结,本场景判 FAIL。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL