Help needed in php amqplib

240 views
Skip to first unread message

tester...@gmail.com

unread,
Jun 26, 2015, 6:43:19 AM6/26/15
to rabbitm...@googlegroups.com
Dear All,

Can anybody help me with providing a good PHP example to implement Heartbeat in amqp.
All my idle connections are removed after a certain time and especially when a  new queue is generated.

Thanx in advance.

Michael Klishin

unread,
Jun 26, 2015, 6:51:30 AM6/26/15
to rabbitm...@googlegroups.com, tester...@gmail.com
 On 26 June 2015 at 13:43:22, tester...@gmail.com (tester...@gmail.com) wrote:
> Can anybody help me with providing a good PHP example to implement
> Heartbeat in amqp.

Have you tried setting this to, say, 10?
https://github.com/videlalvaro/php-amqplib/blob/master/PhpAmqpLib/Connection/AMQPStreamConnection.php#L37

> All my idle connections are removed after a certain time and especially
> when a new queue is generated.

It would help if you could provide RabbitMQ logs, just to clarify that missed client-side
heartbeats are indeed the root cause.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Reply all
Reply to author
Forward
0 new messages