Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

rabbitmq

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

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

like image 630
joe Avatar asked Nov 07 '17 07:11

joe


2 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.

like image 127
joe Avatar answered Oct 21 '22 08:10

joe


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

like image 34
Filip Avatar answered Oct 21 '22 10:10

Filip