-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Getting a response as NULL after 4 minutes #75
Comments
My guess is that the other side closes the connection after that time. |
Thank you @kelunik for the quick response. Is there a function to add a timeout for the Thank you in advance? |
We currently don't have cancelation support for reads, but you can use Amp\Promise\timeout to apply a timeout to any promise. However, this will not cancel the operation, but closing the socket on timeout will. |
Thank you @kelunik for your suggestion. Do you think it's ok to put that Example:
|
Yup, that's generally how you do it. |
I am sending multiple requests to one or more TCP client, using the below code
One of the clients is delaying too much and after approximately 4 minutes it returns "null".
Can you help me understand what happens after 4 minutes?
Is this something like a timeout for the read command?
Can I change it for example to 1 minute?
Thank you in advance
The text was updated successfully, but these errors were encountered: