How can I set a larger timeout in net/http? What I'm doing is this:
rta = JSON.parse(Net::HTTP.get(URI(url)))
I've tried:
uri = URI(url)
http = Net::HTTP.new(uri.host, uri.port)
http.open_timeout = 5* 60
http.read_timeout = 5* 60
rta = JSON.parse(Net::HTTP.get(URI(url)))
but it still doesn't work.