Support changing max_retries
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 61
- Forks
- 22
- Avg merge
- 15m
- Merged PRs (30d)
- 2
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading open-uri's option handling and how it delegates requests to Ruby's Net::HTTP, then check how Net::HTTP exposes max_retries. Define whether the change supports only max_retries or a general option pass-through, and verify that disabling or changing retries affects GET requests predictably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100