ginuerzh
31878a72ec
docs(handler/tunnel): add architecture documentation and fix observeStats event loss
- Add package-level architecture doc in handler.go covering:
- NAT traversal reverse proxy architecture
- CmdBind/CmdConnect roles and data flow
- Connector lifecycle and waitClose semantics
- Entrypoint protocol dispatch (first-byte sniffing)
- SD fallback behavior
- Add data-flow-oriented doc comments to all business files:
- entrypoint.go: protocol dispatch, dial flow
- connector.go: Connector/ConnectorPool semantics
- dialer.go: two-phase dial strategy
- tunnel.go: MaxWeight semantics, selection algorithm
- bind.go: 6-step CmdBind flow
- connect.go: CmdConnect flow with relay framing
- ephttp.go, eptls.go, eprelay.go: per-protocol entrypoint flow
- Fix observeStats: after successful error retry, also flush new events
instead of skipping the current tick (handler.go:261-271)
- Add test for observeStats retry-then-flush (handler_test.go)
2026-06-02 18:36:52 +08:00
..
2026-05-26 20:44:23 +08:00
2024-10-02 22:51:23 +08:00
2026-05-31 17:05:21 +08:00
2026-05-31 22:48:17 +08:00
2026-05-31 17:05:21 +08:00
2026-06-01 18:28:01 +08:00
2026-05-31 17:05:21 +08:00
2025-08-29 23:36:31 +08:00
2026-05-31 21:00:00 +08:00
2025-08-29 23:36:31 +08:00
2026-05-31 17:05:21 +08:00
2026-05-31 17:05:21 +08:00
2026-05-31 17:05:21 +08:00
2025-08-04 19:29:38 +08:00
2026-05-31 17:05:21 +08:00
2026-05-31 17:05:21 +08:00
2026-05-31 17:05:21 +08:00
2026-05-31 17:05:21 +08:00
2025-11-11 12:37:33 +08:00
2025-08-29 23:36:31 +08:00
2025-08-29 23:36:31 +08:00
2026-06-02 18:36:52 +08:00
2026-05-31 17:05:21 +08:00