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

Fix #41 - New feature allowing to set the connection timeout option #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ljz7
Copy link

@Ljz7 Ljz7 commented Mar 5, 2019

See issue #41 :

the $RCX->setTimeout(3000); doesn't seem to work, the total execution time of the script is ~5 seconds with or without the timeout

It's because of the addition of connect timeout and timeout. The /src/rollingcurlx.class.php lines 153 to 163 set both options to the value of the property _timeout. So, the max total time for a request is _timeout * 2.

This is a simple fix to allow users to set the timeout and the connection timeout.

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

Successfully merging this pull request may close these issues.

1 participant