Catch an IOError that happens on Ruby 2.0 #52

Merged
johnkchow merged 1 commits from master into master 2014-07-18 11:32:13 +00:00
Showing only changes of commit d67df1bb77 - Show all commits

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, IOError
@use_vendored = true
rescue => e
$stderr.puts e.inspect