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
{{ message }}
Repository navigation
Status().RPCs[0] shares internal storage; clearing it can corrupt all-time counts #435
clear(client.Status().RPCs[0]) (or otherwise mutating the slice returned by Status()) can corrupt later all-time counts, because that slice shares internal backing storage with the counter's accumulator. A caller inspecting status should not be able to mutate internal state.
Notes
Pre-existing — confirmed on both baseline and current HEAD. Separate from the session-restore panic fix; surfaced during a deep SDK-engineer review of that change.
Acceptance criteria
Status() returns a copy (or otherwise read-only view) so callers cannot mutate internal counters.
Regression test: mutating the returned stats does not affect subsequent all-time counts.
Activity