technoweenie/faraday — pull request #92 by dhl (2011-11-10 19:51:12+00:00)
Title: Correctly setting the timeout parameters for the em_synchrony adapter

em-http supports both connection timeout (:connection_timeout) and inactivity timeout (:inactivity_timeout) options. The correct mapping from Faraday's global timeout options (:timeout, :open_timeout) to em-http should be:

:timeout => :connection_timeout
:open_timeout => :inactivity_timeout

Where '=>' denotes 'maps to'

See https://github.com/igrigorik/em-http-request/wiki/Redirects-and-Timeouts

This commit is made to mirror the timeout behavior of the net_http adapter.