fix: исправить баги, sentinel-ошибки, устаревшие доки

Баги:
- udprelay: errors.Is(DeadlineExceeded) вместо сравнения строк; короткий
  backoff в ветке lockout; обернуть DTLS-ошибку через %w
- bondserver.copyBondToBackend: лимит pending-map в 1024 (паритет с bondclient)
- srtpmimicry.RelayPacketConn: bufPool для горячего UDP-пути (паритет с listen.go)
- vkauth.token.go: ручной солвер под ctx.WithTimeout(ctx, ...) вместо Background
  — нет утечки горутины при shutdown

Гигиена:
- sentinel-ошибки vkauth как var = errors.New(...); вызыватели используют errors.Is
- убраны устаревшие комментарии этапов рефакторинга (Pion SPDX, "Package bond",
  internal/bond, удалённый файл заметок)
- .gitignore: *.exe, *.so

Тесты + lint проходят.
This commit is contained in:
samosvalishe committed 2026-05-19 21:47:48 +03:00
1 parent 7e3369f478
commit ed6825976a
18 files changed
+203 -448

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@
// smux sessions. Each accepted local TCP connection is opened as a smux stream
// (round-robin across sessions) or, with bond, striped across all live sessions.
//
// The package exposes SessionPool/PooledSession so that the bond client half
// (still living in main during refactor stage 4.2) can operate on them.
// SessionPool/PooledSession are exported so the bond client (internal/proxy/bondclient)
// can stripe a single TCP connection across multiple live sessions.
package tcpfwd
import (
+1 -2
View File
@@ -35,8 +35,7 @@ type Params struct {
// BondHandler stripes one accepted TCP connection across all currently-live
// pool sessions. Nil disables bond mode (callers will then use round-robin).
// Bond client lives in main during stage 4.2; it will move to internal/bond/client
// in stage 5.1.
// The bond client implementation lives in internal/proxy/bondclient.
type BondHandler func(ctx context.Context, tcpConn net.Conn, connID uint64, lanes []*PooledSession)
// Deps groups host-process dependencies needed by the VLESS loop.