-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I used Channel.QueueDeclare concurrently and got the following error:
Exception (503) Reason: "unexpected command received"
Describe the solution you'd like
I'd like to add the following guard:
ch.m.Lock()
defer ch.m.Unlock()to some methods of the Channel struct:
Qos,CancelQueueDeclare,QueueDeclarePassive,QueueInspect,QueueBind,QueueUnbind,QueuePurge,QueueDeleteExchangeDeclare,ExchangeDeclarePassive,ExchangeDelete,ExchangeBind,ExchangeUnbind
This is already implemented on the following methods (publish / ack related):
PublishWithDeferredConfirmWithContext,Ack,Nack,Reject
So I think that it would make sense to have it on other methods too.
Describe alternatives you've considered
Implementing the mutex in the business code is doable but it makes less sense considering that this is done by the library for some methods.
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request