mirror of
https://github.com/versity/versitygw.git
synced 2026-09-21 23:44:14 +00:00
Bound the records a stalled sink can accumulate from requests that never opened a session (failed authentications): beyond 4096 queued, dispatchOrDrop drops the record and counts it, and shutdown reports the drop count once. Session publications stay uncapped - each session publishes exactly once and the session table has a hard limit, so their backlog is structurally bounded. Cancel the metrics child context on constructor failure so a malformed publisher endpoint does not leak the derived context onto the parent.