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
I'm starting to migrate from github.com/streadway/amqp package and delve into the new features of this package. Currently I want to use the PublishWithDeferredConfirm method and it doesn't look production-ready to me. The case in which the problem occurs is closing the connection while waiting for publication confirmation from the AMQP server.
What I mean in more detail:
The type Channel has a shutdown method in which resources are cleared and closed, also here calls a Close method of confirms type. But this method does not properly clean up its resources such as deferredConfirmations an awaiting DeferredConfirmation.
Hi, there. 👋
I'm starting to migrate from github.com/streadway/amqp package and delve into the new features of this package. Currently I want to use the PublishWithDeferredConfirm method and it doesn't look production-ready to me. The case in which the problem occurs is closing the connection while waiting for publication confirmation from the AMQP server.
What I mean in more detail:
The type Channel has a shutdown method in which resources are cleared and closed, also here calls a Close method of confirms type. But this method does not properly clean up its resources such as deferredConfirmations an awaiting DeferredConfirmation.
Possible solution:
Add one more method in type deferredConfirmations and call it from confirms.Close.
But it seems to me that such a situation should be handled with explicit error like ErrClosed. And it's breaking change of package API.
Package version: v1.3.0
The text was updated successfully, but these errors were encountered: