Azure / go-amqp

AMQP 1.0 client library for Go.
https://github.com/Azure/go-amqp
MIT License
104 stars 56 forks source link

Robust handling of context expiration/cancellation #276

Closed jhendrixMSFT closed 1 year ago

jhendrixMSFT commented 1 year ago

If a context expires or is cancelled during session/link creation while waiting for the ack, add the instance to a slice for later cleanup. Removed force-closing of sessions/links. Exhausting available session channels will return a ConnError and close the Conn. Exhausting available link handles will return a SessionError and close the Session.

Fixes https://github.com/Azure/go-amqp/issues/277