mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-30 19:46:15 +00:00
Wire the Tor transport connect_refused counter
The connect_refused stat counter (the Refused line in fipstop) was defined but never incremented: every SOCKS5 connect failure recorded socks5_errors instead, so the counter sat at zero and the operator-facing gauge was permanently misleading. Both the synchronous connect path and the background connect_async task now count a genuine SOCKS5 REP=0x05 refusal as connect_refused and every other failure as a socks5_error, distinguishing them precisely via tokio_socks::Error::ConnectionRefused. Extends the mock SOCKS5 server with a configurable reply code and adds two tests covering the refused and general-failure paths.
This commit is contained in:
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Fixed
|
||||
|
||||
- The Tor transport now increments its `connect_refused` statistic (the
|
||||
"Refused" line in fipstop) when a SOCKS5 connection is actively
|
||||
refused, instead of recording every connect failure as a generic
|
||||
SOCKS5 error. The counter previously stayed at zero.
|
||||
- MMP sender metrics now ignore duplicate or regressed receiver reports
|
||||
before updating RTT, loss, goodput, or ETX. Receiver reports also
|
||||
suppress timestamp echo when dwell time overflows, so stale reports
|
||||
|
||||
Reference in New Issue
Block a user