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

Support changing max_retries #30

Open
fschwahn opened this issue Oct 18, 2023 · 0 comments
Open

Support changing max_retries #30

fschwahn opened this issue Oct 18, 2023 · 0 comments

Comments

@fschwahn
Copy link

net/http (and by extension open-uri) by default retries GET requests one time (max_retries = 1). It would be great if this setting could be altered through open-uri. It is already possible to change timeouts, and if it would be possible to disable retries I could ensure that the request either suceeds or fails in a predictable timeframe.

Maybe a more general option would make sense which could allow us to pass any option through to Net::Http?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant