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 to configure the read timeout #53

Merged
merged 2 commits into from
Mar 13, 2015

Conversation

oddlyfunctional
Copy link
Contributor

Hi!
I've added the option to configure the Net::HTTP::Persistent#read_timeout, and altered the name of the existing configuration for the Net::HTTP::Persistent#open_timeout so it's clearer now.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 98.91% when pulling cc7b822 on mrodrigues:master into 221a343 on gottfrois:master.

@gottfrois
Copy link
Owner

Thanks for the PR, however you cannot change an old configuration attribute like that :) We need to keep the compatibility so that it won't break people's code when upgrading.

You should probably add an alias instead.

@oddlyfunctional
Copy link
Contributor Author

0a59d23
There you go :)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 98.92% when pulling 0a59d23 on mrodrigues:master into 221a343 on gottfrois:master.

@@ -1,4 +1,5 @@
require 'spec_helper'
require 'pry'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 98.92% when pulling da50c14 on mrodrigues:master into 2a42ad2 on gottfrois:master.

gottfrois added a commit that referenced this pull request Mar 13, 2015
Allow to configure the read timeout
@gottfrois gottfrois merged commit 6110704 into gottfrois:master Mar 13, 2015
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

3 participants