ruby / ruby/open-uri

Support changing max_retries

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.