vyuldashev / laravel-queue-rabbitmq

RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.
MIT License
1.93k stars 382 forks source link

Config option to set connection, read & write timeout vars #586

Open mirrorps opened 8 months ago

mirrorps commented 8 months ago

Great package, saves a lot of time. Thanks!

Suggestion: It would be great if there is a config option (ex. array) to set the timeout options used in PhpAmqpLib\Connection\AMQPConnectionConfig: $connectionTimeout, $readTimeout, $writeTimeout

Now to achieve this one have to create a dedicated class extending AMQPStreamConnection, only to set 2 lines of code.

I can implement a PR if you like.

iamkhusainov7 commented 6 months ago

Hello @vyuldashev . Are there any updates regarding this issue? Having such configuration options is crucial, as a 3-second timeout may not be enough in some environments! I see you have a setter for the connection timeout, but you are not using it anywhere in the code! image

TomaszKorwel commented 4 months ago

+1

khepin commented 4 months ago

If someone can make a PR, I'm happy to help get it through.