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

Allow setting configuration for timeouts #196

Closed
wants to merge 3 commits into from

Conversation

elhu
Copy link

@elhu elhu commented Mar 1, 2019

As discussed in #186, the inability to set timeouts for Contentful's HTTP client makes it hard to mitigate availability issues.

This PR is a first stab at making the timeouts possible to configure.
It adds three configuration options, that must all be set together or not at all (because the default in HTTP is 0.25s for each when enabling timeouts):

  • timeout_read
  • timeout_connect
  • timeout_write

Updating the HTTP gem would make it easier to set one global timeout, which would be more user friendly, but I thought this was a bit out of scope for this particular contribution.

Regarding the rubocop issues: I've fixed the ones that made sense, but the last three ones should be decided upon by maintainers.

@elhu elhu force-pushed the allow-timeout-configuration branch from fbc0b4b to 84248e1 Compare March 1, 2019 15:30
@elhu elhu closed this Mar 1, 2019
@elhu elhu reopened this Mar 1, 2019
@elhu
Copy link
Author

elhu commented Mar 20, 2019

@dlitvakb did you get a chance to take a look at this PR?

@dlitvakb
Copy link
Contributor

dlitvakb commented Apr 8, 2019

Hey @elhu,

This is on my list of tasks for today, I'll probably have it included in a release either today or tomorrow.

Cheers

@dlitvakb
Copy link
Contributor

dlitvakb commented Apr 9, 2019

This has been released in version 2.12.0.

Cheers

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.

None yet

2 participants