-
Notifications
You must be signed in to change notification settings - Fork 49
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
Timeout doesn't seem to work #41
Comments
Hello, the timeout property is in milisecond. The timeout you set is 3seconds. Although, it's a timeout by request. If you have 10 urls to curl, it will last maximum 30 seconds. Hope it helps. |
it doesn't work... the script is executing in the same time with or without timeout :(. P.S: i have 250 urls, it does a fantastic job in sending all those requests but the problem is that i can't add that timeout |
I see. As I read the code, it seems that the So the ~5 seconds you experienced is certainly the addition of the connection time and the transfer time. A solution could be to create a new property like "_connect_timeout" and use it for the If that works, you could create a pull request to fix that bug. = ) PS : See the PHP curl-setopt manual for more info about these two options. |
Can't seem to be able to get it going :( |
Have you tried setting the option to 1500ms ? It's the simpler solution. |
…CTTIMEOUT(_MS) option
Hello @emanuelones Here is a fix : Ljz7@5de825f |
I''m using this code
But the
$RCX->setTimeout(3000);
doesn't seem to work, the total execution time of the script is ~5 seconds with or without the timeout. Am i doing something wrong?Thank you!
The text was updated successfully, but these errors were encountered: