<div dir="ltr">Because it's not slower - it's blocked and the SDK doesn't allow me to specify a timeout.<div>So once a rabbit node gets clogged with unacked messages and hits it's memory watermark, any thread in my app trying to publish will get blocked forever.</div>
<div>I've been looking at the source for the .NET SDK (which w'ere using) and it blocks on flushing to the TCP stream.</div><div>I ended up modifying the SDK to set a send timeout on the socket, so when the server blocks producers, I get an exception after 2 seconds instead of being blocked.<br clear="all">
<div dir="ltr"><div><br></div><div>Thanks<br clear="all"><div dir="ltr"><i style="color:rgb(102,102,102)">--</i><span style="color:rgb(102,102,102)">Raviv</span></div></div><div><font color="#666666"><i><br></i></font></div>
</div><br>
<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 4:54 PM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/10/12 11:47, Raviv Pavel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think I've read somewhere that it's not currently possible.<br>
I need the same thing :(<br>
<br>
On Tuesday, September 25, <a href="tel:2012" value="+9722012" target="_blank">2012</a> 11:47:18 PM UTC+2, Dmitriy Stolyarov wrote:<br>
<br>
Hi,<br>
Is there a way to have the producer throw an exception instead of<br>
just being blocked when high memory water mark is reached on the<br>
server? (Using java client)<br>
</blockquote>
<br>
Why you would want to treat this condition any different from a network delay/disruption or a slow server?<br>
<br>
It possible to detect that, indirectly, using a technique I described in <a href="http://rabbitmq.1065348.n5.nabble.com/Memory-Management-Concerns-Questions-tp13225p13233.html" target="_blank">http://rabbitmq.1065348.n5.<u></u>nabble.com/Memory-Management-<u></u>Concerns-Questions-<u></u>tp13225p13233.html</a> (which I shall henceforth call "user level EWOULDBLOCK" ;)<span class="HOEnZb"><font color="#888888"><br>
<br>
Matthias.<br>
</font></span></blockquote></div><br></div></div>