You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i set this, then i know all my own code which uses faraday, and gems that i use which use faraday (and don't set their own timeouts, which seems to usually be the case), will have this timeout set.
for net-http, i can do some combination of the bellow:
a) set it one by one for my own code
b) ask gem authors to allow this to be configured when it's not
c) monkeypatch gems
d) do a global monkeypatch of net-http
e) use the http-cage gem which has't been updated in 3 years (but maybe doesn't need to be, haven't really checked)
it would be great if net-http allowed a global setting, similar to faraday
i would be happy to submit a PR if folks think it's a good idea
Reacted by Ben Sheldon, Vojta Drbohlav, Geoff Harcourt, fatkodima, Nicolás Sanguinetti and João Marcos
Activity
jjb commentedon May 9, 2024
here is the meat of the monkeypatch, applied with this method