lib/net/http/pipeline.rb in net-http-pipeline-1.0 vs lib/net/http/pipeline.rb in net-http-pipeline-1.0.1

- old
+ new

@@ -32,11 +32,11 @@ module Net::HTTP::Pipeline ## # The version of net-http-pipeline you are using - VERSION = '1.0' + VERSION = '1.0.1' ## # Pipeline error class class Error < RuntimeError @@ -221,11 +221,11 @@ retried = false begin res = request req rescue Timeout::Error, EOFError, Errno::ECONNABORTED, Errno::ECONNRESET, - Errno::EPIPE, Net::HTTPBadResponse => e + Errno::EPIPE, Net::HTTPBadResponse, IOError => e if retried then requests.unshift req raise ResponseError.new(e, requests, responses) end @@ -310,10 +310,10 @@ end end responses rescue Timeout::Error, EOFError, Errno::ECONNABORTED, Errno::ECONNRESET, - Errno::EPIPE, Net::HTTPBadResponse => e + Errno::EPIPE, Net::HTTPBadResponse, IOError => e pipeline_finish raise ResponseError.new(e, in_flight, responses) end