ginuerzh
174bc082d1
fix(tunnel): data race in CloseOnIdle and goroutine leak in sniffingWebsocketFrame
...
- Use write lock (Lock) instead of read lock (RLock) in CloseOnIdle since
it modifies the close channel, preventing a race with Close() that could
panic on double-close of channel.
- Buffer sniffingWebsocketFrame errc to capacity 2 and close both
connections on first error to ensure the remaining copy goroutine
unblocks and exits cleanly.
2026-05-22 16:31:37 +08:00
ginuerzh
06d993023f
add traffic reset for stats
2024-12-24 20:11:22 +08:00
ginuerzh
6f001a779a
tunnel: fix tunnel routing for public entrypoint
2024-11-22 22:04:44 +08:00
ginuerzh
f4d9a5f79b
tunnel: checking closed connector
2024-11-01 15:25:45 +08:00
ginuerzh
31c482c649
add scope param for traffic limiter
2024-08-31 09:30:04 +08:00
ginuerzh
ff20711c25
add stats support for tunnel handler
2024-08-28 13:34:05 +08:00
ginuerzh
1a776dc759
fix connection state in tunnel entrypoint
2024-08-01 20:52:08 +08:00
ginuerzh
5ee7746aab
fix tunnel connector selection
2024-01-28 18:56:19 +08:00
ginuerzh
b5b39de62c
add weight for tunnel connector
2024-01-27 23:31:23 +08:00
ginuerzh
d464be5fd0
update sd
2023-11-02 22:31:52 +08:00
ginuerzh
68edeb2d59
update sd
2023-11-02 20:52:33 +08:00
ginuerzh
a7166b8206
add sd for tunnel
2023-10-31 22:59:14 +08:00
ginuerzh
0bef7c0cdf
improve tunnel handler
2023-10-27 22:11:11 +08:00
ginuerzh
5dfbb59f8a
update forward handler
2023-10-16 23:16:47 +08:00
ginuerzh
497915f465
add tunnel handler and connector
2023-10-15 15:39:25 +08:00