lib/httpx/plugins/proxy.rb in httpx-0.4.1 vs lib/httpx/plugins/proxy.rb in httpx-0.5.0
- old
+ new
@@ -117,9 +117,10 @@
log { "failed connecting to proxy, trying next..." }
request.transition(:idle)
connection = find_connection(request, connections, options)
connections << connection unless connections.include?(connection)
connection.send(request)
+ set_request_timeout(connection, request, options)
return
end
response
end
end