open-uri icon indicating copy to clipboard operation
open-uri copied to clipboard

Support changing max_retries

Open fschwahn opened this issue 2 years ago • 0 comments

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?

fschwahn avatar Oct 18 '23 09:10 fschwahn