[rabbitmq-discuss] Error: RabbitMQ.Client.ConnectionFactory.cs - "Only one usage of each socket address (protocol/network address/port) is normally permitted"
pekenney at gmail.com
Mon Aug 31 17:40:24 BST 2009
As far as I can tell at the moment; this error is being thrown by the call
to ""FollowRedirectChain" in RabbitMQ.Client.ConnectionFactory.cs ...
its being caught in the exception2 catch in FollowRedirectChain...
I have not been able to find anything specific to rabbitmq with others
having this particular error thus far but; I found the following ...
http://blogs.msdn.com/dgorti/archive/2005/09/18/470766.aspx ( tried the
various suggestions and it made no difference)
seemed to closely resemble the condition, as I am sending 4000 copies of the
same message to the following method...
public void PublishMessage(string pstrExchangeName, string
pstrReturnKey, string pstrXml)
using (IConnection conn = new
using (IModel ch = conn.CreateModel())
IBasicProperties props = ch.CreateBasicProperties();
IStreamMessageBuilder b = new
byte bytes = Encoding.UTF8.GetBytes(pstrXml);
catch (Exception ex)
it consistently fails pretty close to the 4000' th... iteration 3959 etc...
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...
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...
and each individual message size is about 400k
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss