ruby-on-railstyphoeus

Typhoeus timeout = connection or download?


When I specify the timeout while making a Typhoeus request, is that timeout a connection timeout or download timeout? If it's a connection timeout is there any way to specify a downloading timeout as well?

Example:

Typhoeus::Request.new(url, **:timeout  => 3000**, :followlocation => true)

Solution

  • It perhaps depends on the version you are using. Since Typhoeus 0.5 it is this: libcurl timeout. Which should include the transfer. Compare to libcurl connect timeout.