implement :connect_timeout option
commit622d5ab17846bc58c2e0cfd98b3a8b73ad341c0d
authorEric Wong <e@80x24.org>
Fri, 26 Aug 2016 21:38:54 +0000 (26 21:38 +0000)
committerEric Wong <e@80x24.org>
Wed, 31 Aug 2016 02:48:17 +0000 (31 02:48 +0000)
tree68929dfbff84640fc1ea8a8264ee62ed04a9b42d
parentcea8d77382e42132f4a433d59a5dc37fcc295ec3
implement :connect_timeout option

This can be useful for specifying a different timeout for
establishing a connection.  Some requests could be expensive and
want a higher :timeout measured in seconds, while the time to
establish a TCP connection on a healthy LAN could be less than
a millisecond.

This defaults to 3s to match the existing :timeout, but only
affects the amount of time the client will wait for establishing
a TCP connection to a tracker.
lib/mogilefs/backend.rb
lib/mogilefs/client.rb
lib/mogilefs/mogilefs.rb