I use the example from tutorial-two-php to construct a work queue. It looks fine when I first test it. However, it looks like the consumer stops responding after about few hours or a day. I use a daemon and run the consumer as a worker, and I make the daemon as a service in ubuntu 16.04. When checking service status, the service(daemon) and worker are both running. But it is just not responding to the new message I send to the queue. I am not using any timeout or heartbeat setting, and it's just basic examples like the tutorial. What could possibly make this happen?I now use a workaround to timeout the consumer like "$this->channel->wait(null, false, mt_rand(self::TIME_LIVE_MIN_SEC, self::TIME_LIVE_MAX_SEC));", so I won't have a very long living consumer which I consider as a bad thing in php. Any suggestion to avoid long living consumer would be welcome. Thank you
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.