[rabbitmq-discuss] C# client publisher confirm bug under load (2.8.7)
Emile Joubert
emile at rabbitmq.com
Mon Dec 10 14:34:38 GMT 2012
Hi Eric,
On 10/12/12 14:22, Eric Swann wrote:
> It looks like there are multiple threads hitting the bolded "*Add*"
> method
The library warns about concurrent access to the Model though. Section
2.10 in the User Guide explains:
"If more than one thread needs to access a particular IModel
instances, the application should enforce mutual exclusion itself."
Failure to follow this advice can lead to the problem you describe and
it could also lead to framing errors. Your suggested fix will not solve
all the problems, so it is suggested that you do not share Model among
threads.
-Emile
User Guide for v3.0.0:
http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v3.0.0/rabbitmq-dotnet-client-3.0.0-user-guide.pdf
More information about the rabbitmq-discuss
mailing list