Connection issue using AMQP PHP Library

1,756 views
Skip to first unread message

genseb

unread,
May 6, 2019, 11:00:04 AM5/6/19
to rabbitmq-users
Hi,

We are encountering a lot of connection issue using AMQP PHP Library.

Kind of error messages:

PHP Fatal error:  Uncaught exception 'PhpAmqpLib\Exception\AMQPIOException' with message 'stream_socket_client(): unable to connect to tcp://XXXXXXXXXXXXXXX (Connexion terminée par expiration du délai d'attente)' in xxxxxxxxxxxxxxxxxxx/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:109

PHP Fatal error:  Uncaught exception 'PhpAmqpLib\Exception\AMQPHeartbeatMissedException' with message 'Missed server heartbeat' in xxxxxxxxxxxxxxxxxxxxxxx/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/AbstractIO.php:140

Is there some best practices to adopt to avoid this kind of issue server side or/and code side?

Technical information:

RabbitMQ server version: 3.3.5
amqplib version: 2.7.0

Thanks for your help!

Seb.

Michael Klishin

unread,
May 13, 2019, 5:00:57 PM5/13/19
to rabbitmq-users
RabbitMQ 3.3.5 is close to 5 years old. Please upgrade [1][2]. The PHP client version you are running is
also behind the latest by a few years.

The meaning of the missed heartbeat message is explained in [3].


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages