Skip to content

Instantly share code, notes, and snippets.

@mjdavies
Created September 27, 2012 12:47
Show Gist options
  • Save mjdavies/3793825 to your computer and use it in GitHub Desktop.
Save mjdavies/3793825 to your computer and use it in GitHub Desktop.
In a model I've got a method
def library_details
require 'httparty'
@request_url = "longurl"
response = HTTParty.get(@request_url, :timeout => 1)
return response
end
I don't get an error, but the timeout value does not seem to be taken into consideration.
The call can run and run and run and never timeout.
Any ideas?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment