mirror of
https://github.com/narrrl/proton-sdk-rs.git
synced 2026-12-03 20:51:50 +01:00
An `http_request` event is one logical call, and a 401 refresh and replay or a retry inside it was invisible. The event now carries an `attempts` attribute: the first send, the retries and the replay. The refresh request itself is not counted. Sends are counted with a task-local scope around the call, so a refresh run on its own task and calls on other tasks never add to it. A loopback test checks three sends on the wire (request, refresh, replay) against one event with `attempts = 2`.