-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link errors need to be wrapped in an amqp.DetachError #127
Comments
…link is detached. This should make it easier for callers to figure out how to remediate the error. Fixes Azure#127
is there a method to reestablish the link available to users of this library? on the sender side on stale connections. |
just following up here. I am trying to update an upstream and hoping to avoid dealing with this at my level. How do you currently deal with stale connections on long lived receiver functions in worker environments? |
@jhendrixMSFT I would contribute some effort into improving this does the team have a shared slack or something? |
Fixed in |
Currently network errors will leave the link in a detached state (which is fine) but will not indicate that detach state via the returned error. In paticular, this code in Receive() can be problematic:
The bit NOTE'd above will cause errors if you're using the error to determine if the link needs to be recovered. In general a caller should be able to see amqp.DetachError{}, for instance, and know they can do something useful here, like recreate just this link.
The text was updated successfully, but these errors were encountered: