-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
Symfony version(s) affected: 4.3.0
Description
[2019-06-25 21:17:40] console.ERROR: Error thrown while running command "messenger:consume". Message: "Library error: a socket error occurred" {"exception":"[object] (Symfony\Component\Messenger\Exception\TransportException(code: 0): Library error: a socket error occurred at .../vendor/symfony/messenger/Transport/AmqpExt/AmqpReceiver.php:56, AMQPException(code: 0): Library error: a socket error occurred at /data/websites/match.walmeric.com/vendor/symfony/messenger/Transport/AmqpExt/Connection.php:348)","command":"messenger:consume","message":"Library error: a socket error occurred"} []
How to reproduce
In the handler, inside __invoke function, execute something around 10-15 minutes.
Possible Solution
Expose heartbeat value in configuration
Additional context
The consumer executes a Python script that sometimes run for 5, 10 or 30 minutes, so the Messenger component throws a socket error.
Possible related issues
php-amqplib/RabbitMqBundle#301