Azure / azure-amqp

AMQP C# library
Other
94 stars 70 forks source link

Opening a link with an existing linkname on the same session throws resource-locked exception #153

Open abhipsaMisra opened 4 years ago

abhipsaMisra commented 4 years ago

As per the AMQP spec, when we attach a link with the same linkname as one existing on the connection, the second attach should be successful, and the existing attached link should be closed with an error link-stolen. The AMQP library however does not accept the second attach, and returns a resource-locked error code instead.

Line no: https://github.com/Azure/azure-amqp/blob/master/src/AmqpSession.cs#L178

xinchen10 commented 4 years ago

Yes, this is a bug.

abhipsaMisra commented 4 years ago

Are there any plans to fix this in the next release?