Files
drip/scripts/test
Gouryella 2ef802f6e8 fix: harden server concurrency safety and clean up dead code
- Enforce connSem limit on WebSocket connections (bypassed maxConns)
- Fix data race in authRateLimiter.isRateLimited (copy fields under lock)
- Use RLock fast path in sessionStore.validate
- Clean up per-tunnel Prometheus labels on unregister (cardinality leak)
- Fix potential deadlock in CleanupStale (lock ordering vs RegisterWithIP)
- Replace time.After with time.NewTimer in tunnel Send (timer leak)
- Cache tunnelTypeStr to avoid lock contention on hot path
- Use atomic connID sequence to prevent sync.Map key collision
- Add http.Flusher to httpResponseWriter
- Unify TCP socket buffer sizes (256KB → 512KB)
- Extract utils.ContainsIgnoreCase, deduplicate IsTransportAllowed
- Hoist reserved subdomain map to package-level var
- Rename ambiguous bufioWriterPool → httpRespWriterPool
- Remove unused: scalerLoop, ensureSessions, handleProxyLogin,
  cleanupShutdownOnce, initCleanupShutdown, sessionIdx, errorAfterConn
- Fix staticcheck: redundant type assertion, single-case select,
  redundant CanonicalHeaderKey
2026-04-23 17:55:14 +08:00
..