Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mirrorps opened this issue Mar 25, 2024 · 1 comment
Open

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

mirrorps opened this issue Mar 25, 2024 · 1 comment

Comments

@mirrorps
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants