Although I raised the timeout for Net::HTTP:
http = Net::HTTP.new(uri.host, uri.port)
http.open_timeout = 60
http.read_timeout = 60
response = http.post(uri.path, body, headers)
I keep getting these errors:
Timeout::Error at /
execution expired
file: http.rb location: initialize line: 762
It's a pretty long time for timeout I guess, and I should not get these errors, should I? I also read a couple of articles that described how to increase the timeout using ways different from mine. It gets me confused: For such a simple thing there are a lot of different and complicated solutions, and I don't know which one is correct.
What are your ideas about the correct way of increasing timeout? And, how do I check if I did it correctly?