Skip to content

Comments

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

Open
Ljz7 wants to merge 1 commit intomarcushat:masterfrom
Ljz7:feature/setConnectTimeout
Open

Fix #41 - New feature allowing to set the connection timeout option#42
Ljz7 wants to merge 1 commit intomarcushat:masterfrom
Ljz7:feature/setConnectTimeout

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