Azure / go-amqp

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

Properly distinguish between input and output link handles #293

Closed jhendrixMSFT closed 1 year ago

jhendrixMSFT commented 1 year ago

Per spec, peers can have different values for link handles. When sending a frame, its Handle is set to the output (our) handle. When receiving a frame, its Handle is set to the input (remote) handle. Fixed session data structures to properly map an input handle to a link. Renamed handle fields and supporting types/vars to follow spec nomenclature. Added a live test that reproduced the issue.

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