Open yiiman-dev opened 2 years ago
Hi @yiiman-dev . The same occurred with me.
I solved adding "heartbeat" and "read_write_timeout" fields in connection array with a number greater than 0 (I've used 60 for both).
Note that setting both heartbeat
and read_write_timeout
to the same value can cause a race condition where the connection is closed just before a heartbeat arrives.
It seems to be recommended to use 60 seconds as heartbeat
and 130 seconds as read_write_timeout
. This is actually the default of php-amqplib. See https://github.com/php-amqplib/php-amqplib/pull/648
Hi everyone
At first, thanks for this useful repository
I have problem on consumer connection
It not work after few minutes, no error, no any response in console
I am using
Supervisor
on dockerMy supervisor config:
My rabbit config:
My consumer class:
Top result in Linux after few minutes, when connection is freezed:
After few minutes consumer is running but in fact it is freezed and dont work.
Any idea?