<div dir="ltr">My understanding is that you should be sharing a single connection, not connection factory, across all threads. You then use channels for that single connection on each thread.</div><div class="gmail_extra">
<br clear="all"><div><div dir="ltr"><b>Garry Shutler</b><div><div><a href="http://twitter.com/gshutler" target="_blank">@gshutler</a></div><a href="http://gshutler.com/" target="_blank">gshutler.com</a></div></div></div>
<br><br><div class="gmail_quote">On 18 April 2013 12:38, Chris Haines <span dir="ltr"><<a href="mailto:cjbhaines@gmail.com" target="_blank">cjbhaines@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry I forgot to mention. I am using the version 3.0.4 client libraries and server.<div class="HOEnZb"><div class="h5"><br><br>On Thursday, 18 April 2013 12:37:40 UTC+1, Chris Haines wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<div><br></div><div>I have attached a .cs Nunit test fixture to demonstrate a problem I am having with the ConnectionFactory. If I create 100 connections in a for loop single threaded then I can create them all in about 2 seconds. If I create them via a number of threads, in my test I am using 100 threads to create a connection on each, then I get a lot of timeout exceptions (my test bails out after 60 seconds). I have tried sharing an instance of the ConnectionFactory between all threads and also giving each thread its own instance but they both have the same result. I have also tried locking around the call to CreateConnection but that also didn't help. </div>
<div><br></div><div>I find this behavior to be very strange. Has anyone else had similar problems?</div><div><br></div><div>Cheers,</div><div>Chris</div></blockquote></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>