lib/httpx/client.rb in httpx-0.0.4 vs lib/httpx/client.rb in httpx-0.0.5
- old
+ new
@@ -109,14 +109,10 @@
@connection.next_tick until (response = fetch_response(request))
responses << response
requests.shift
- break if requests.empty?
- rescue TimeoutError => e
- responses << ErrorResponse.new(e, 0, @options) while requests.shift
- @connection.reset
- break
+ break if requests.empty? || !@connection.running?
end
end
responses
end