As far as I can tell at the moment; this error is being thrown by the call to ""FollowRedirectChain" in RabbitMQ.Client.ConnectionFactory.cs ...<br><br>its being caught in the exception2 catch in FollowRedirectChain...<br>
<br>I have not been able to find anything specific to rabbitmq with others having this particular error thus far but; I found the following ...<br><a href="http://blogs.msdn.com/dgorti/archive/2005/09/18/470766.aspx" target="_blank">http://blogs.msdn.com/dgorti/archive/2005/09/18/470766.aspx</a> ( tried the various suggestions and it made no difference)<br>
<br>seemed to closely resemble the condition, as I am sending 4000 copies of the same message to the following method...<br><br> public void PublishMessage(string pstrExchangeName, string pstrReturnKey, string pstrXml)<br>
{<br> try<br> {<br> using (IConnection conn = new ConnectionFactory().CreateConnection(this.rabbitmqHost))<br> {<br> using (IModel ch = conn.CreateModel())<br>
{<br> IBasicProperties props = ch.CreateBasicProperties();<br> IStreamMessageBuilder b = new StreamMessageBuilder(ch);<br><br> byte[] bytes = Encoding.UTF8.GetBytes(pstrXml);<br>
b.WriteBytes(bytes);<br> ch.BasicPublish(pstrExchangeName, pstrReturnKey, null, bytes);<br> }<br> }<br> }<br><br> catch (Exception ex)<br>
{<br> throw ex;<br> }<br> }<br><br>it consistently fails pretty close to the 4000' th... iteration 3959 etc...<br><br>I am thinking I am hitting some kind of configurable threshold in the RabbitMQ Client and or RabbitMQ ServiceModel... but have been unable thus far to pin it down...<br>
<br>Another interesting thing is that this exact code works unchanged on a much older, slower Pentium IV 2ghz, 2gig ram on windows xp pro vs. windows server 2003 enterprise sp2... quad core xeon, 4gig, etc...<br><br>and each individual message size is about 400k<br>
<br>thanks in advance.<br><br><br>