mirror of
https://github.com/Gouryella/drip.git
synced 2026-05-10 12:21:01 +00:00
- 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