Skip to content

Handling prefetched messages upon lost connection? #26

@jraede

Description

@jraede

Awesome package, this helps us a lot. Just one question that's come up while testing various edge cases:

If prefetch is set to > 1, then you could conceivably have the following scenario:

  1. Multiple messages are published and delivered to the consumer, pending processing
  2. Connection is lost (server blip, let's say). Cony gracefully handles reconnection, BUT
  3. The amqp.Messages in the deliveries channel reference a channel that is now CLOSED.

How would you suggest handling this case? If we remake the deliveries channel would that imply a NACK on the rabbit server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions