mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
The service Serve loop counted every handler error — including client-side disconnects (io.EOF, net.ErrClosed, context cancellation) and policy decisions (rate limiting, bypass) — as server handler errors, inflating the error counter and log noise. isServerError() now gates the error-level log, error counter, and stats increment; non-server errors are logged at debug level only.