nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16k stars 1.41k forks source link

[FIXED] Backoff not respected with multiple inflight redeliveries #6104

Closed MauriceVanVeen closed 1 week ago

MauriceVanVeen commented 1 week ago

Resolves https://github.com/nats-io/nats-server/issues/6085

With two messages, one being scheduled to be redelivered after max backoff, and another new message that just came in. The new message would only be redelivered after the max backoff due to the first message having set the timer as such.

Make sure that we can reset the pending timer to trigger earlier in this scenario.

Signed-off-by: Maurice van Veen github@mauricevanveen.com