<blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">I don't think there is a workaround. Maybe there is a atexit(3)<br>
equivalent in php?<br></blockquote>Not that I know of.<br><br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">It should be fine as far as the TCP/IP connection is intact. But don't use<br>
AMQP heartbeats :)<br></blockquote>
Yes, heartbeats do screw things up! I'll have to remember to note that in the docs.<br><br>Thanks,<br>--Robin<br><br><br><br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 1:46 PM, Marek Majkowski <span dir="ltr"><<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Jul 6, 2011 at 19:24, Robin Harvey <<a href="mailto:harvey.robin@gmail.com">harvey.robin@gmail.com</a>> wrote:<br>
> A couple of people recently asked about support for persistent connections,<br>
> after a bit of hacking around I've uploaded an update which has basic<br>
> persistent connection support: <a href="https://github.com/BraveSirRobin/amqphp" target="_blank">https://github.com/BraveSirRobin/amqphp</a><br>
> (check the 0.9.1 tag)<br>
<br>
</div>Nice!<br>
<div class="im"><br>
> I'd be interested to hear what the RabbitMQ people think about the likely<br>
> behavior of PHP "persistent connections", which may include:<br>
><br>
> * If the web server is restarted, all open client connections are dropped<br>
> without going through the amqp shutdown sequence, so you get lots of "closed<br>
> abruptly" errors in the log.<br>
<br>
</div>I don't think there is a workaround. Maybe there is a atexit(3)<br>
equivalent in php?<br>
<div class="im"><br>
> * If a web server has no web requests to process then the persistent client<br>
> can't respond to any messages the broker sends; the client will "go quiet".<br>
<br>
</div>It should be fine as far as the TCP/IP connection is intact. But don't use<br>
AMQP heartbeats :)<br>
<br>
Cheers,<br>
<font color="#888888"> Marek<br>
</font></blockquote></div><br>