Reference the top-level Timeout, to avoid conflicts with Rack::Timeout

Otherwise we get: #<NameError: uninitialized constant Rack::Timeout::Error>
This commit is contained in:
Ben Woosley 2013-05-23 21:30:11 -07:00
parent e43835bdbf
commit 1891dbb920

View File

@ -45,7 +45,7 @@ module Rack
begin
http.send_request('GET', uri.path)
@use_vendored = false
rescue Timeout::Error, Errno::ECONNREFUSED, EOFError
rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError
@use_vendored = true
rescue => e
$stderr.puts e.inspect