Ben,<br><br>Thanks for being so responsive to input. It&#39;s really great and much appreciated.<br><br>Regards,<br>Ed<br><br><div class="gmail_quote">On Mon, May 12, 2008 at 4:44 PM, Ben Hood &lt;<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ed,<div class="Ih2E3d"><br>
<br>
On 12 May 2008, at 20:56, Edwin Fine wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Ben,<br>
<br>
I was monitoring my running system, and unless I am mistaken, it looks as if amqp_network_connection:reader_loop/4 has a non-tail recursive call, which is making it eat stack and heap like there&#39;s no tomorrow. There&#39;s a call to gen_tcp:close(Sock) at the end of the function. I suggest you move this to the last line of start_reader as shown:<br>

</blockquote>
<br></div>
Fair point. I&#39;ve applied this change. Thanks for pointing this one out.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The outstanding issue is to close the writer down properly in the network case.<br>
</blockquote>
<br></div>
I&#39;ve fixed the issue with the network writer not being shut down properly and it&#39;s in mtn.<br>
<br>
HTH,<br><font color="#888888">
<br>
Ben<br>
<br>
</font></blockquote></div><br>