You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rpc/jsonrpc/client.WSClient starts a github.com/rcrowley/go-metrics.Timer but never closes it, thus rpc/client/http.HTTP leaks.
What did you expect to happen?
Either:
Some method on HTTP that releases the timer; or
The timer is released when HTTP.Stop is called and not allocated in the first place unless HTTP.Start is called.
How to reproduce it
Call rpc/client/http.NewClient.
Anything else we need to know
Besides the field definition and initialization, PingPongLatencyTimer is only referenced once: c.PingPongLatencyTimer.UpdateSince(t). There are no calls to c.PingPongLatencyTimer.Stop(). More significantly, it isn't used by anything. PingPongLatencyTimer appears to be dead code. It could be completely removed without affecting Tendermint.
Activity
refactor(rpc): miss stop PingPongLatencyTimer (#2792)
refactor(rpc): miss stop PingPongLatencyTimer (#2792)
refactor(rpc): miss stop PingPongLatencyTimer (#2792)
refactor(rpc): miss stop PingPongLatencyTimer (backport #2792) (#2794)
refactor(rpc): miss stop PingPongLatencyTimer (backport #2792) (#2795)
Replace Tendermint's HTTP client [#3590]
refactor(rpc): allocate PingPongLatencyTimer on start (#2804)
refactor(rpc): allocate PingPongLatencyTimer on start (#2804)
refactor(rpc): allocate PingPongLatencyTimer on start (#2804)
refactor(rpc): allocate PingPongLatencyTimer on start (backport #2804) (
refactor(rpc): allocate PingPongLatencyTimer on start (backport #2804) (
Replace Tendermint's HTTP client [#3590]