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

Use microsecond precision instead of second for connection timeout and connect-timeout #1868

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

romainneutron
Copy link
Contributor

Current implementation only allows second precision for connection timeout and connect-timeout.
This PR provides millisecond precision by accepting float values, and using them if libcurl is compatible with this.

src/Transport/Http.php Outdated Show resolved Hide resolved
src/Transport/Http.php Outdated Show resolved Hide resolved
@romainneutron
Copy link
Contributor Author

I've updated the PR according to comments

@deguif deguif merged commit 9471df3 into ruflin:master Nov 13, 2020
@deguif
Copy link
Collaborator

deguif commented Nov 13, 2020

Thanks @romainneutron.

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.

2 participants