Got "Pipelining of requests forbidden" in c# rabbitmq client

Viewed 9417

I have a RabbitMQ C# Client running in a WCF service.

It catches System.NotSupportedException: Pipelining of requests forbidden exception now and then.

3 Answers

Accroding to the gudie.You need to lock the channel for multi-threading.

As a rule of thumb, IModel instances should not be used by more than one thread simultaneously: application code should maintain a clear notion of thread ownership for IModel instances.

if the server doesn't have enough memory where RabbitMQ is installed you can experience this issue as well.

If you declare a queue and reuse that channel to publish, this error may occur. queue declare and pipeline a publish command before receiving a response. It should be a defect of current sync api

Related