Azure / azure-amqp

AMQP C# library
Other
94 stars 70 forks source link

Need a way to drain receive link when closing #229

Closed JoshLove-msft closed 1 year ago

JoshLove-msft commented 1 year ago

In Service Bus, we would like to be able to drain a link before closing to prevent messages that are in-flight from remaining locked. This can be done for non-Prefetch mode by calling IssueCredit, but there is no way to do this for Prefetch mode.

Apart from the issue with Prefetch, using IssueCredit requires adding an arbitrary delay after the call returns and is therefore not deterministic. It would be better if there was an async API that returns when the draining is complete.

Scarlettliuyc commented 1 year ago

Hi team, any updates for this issue? Do we have the plan to fix it? Thanks

Scarlettliuyc commented 1 year ago

HI @xinchen10 , could we confirm whether we have plan to fix this issue? May be in a few months or in one year. We know the AMQP level issue need longer time to fix, just want to know the ETA. Thank you in advanced.