The application I work on uses httpclient and relies on its persistent connection feature and request hedging to keep p99 google storage uploads to a minimum. v1 changed to faraday, which is understandable, but the default faraday adapter uses net-http, which does not do persistent requests, and would severely limit our ability to seamlessly upgrade.
This patch introduces a new client option, :adapter, which allows setting a default adapter (faraday has several) which supports persistent connections via:
Google::Apis::ClientOptions.default.adapter = :httpx # or
:net_http_persistent
The application I work on uses httpclient and relies on its persistent connection feature and request hedging to keep p99 google storage uploads to a minimum. v1 changed to faraday, which is understandable, but the default faraday adapter uses net-http, which does not do persistent requests, and would severely limit our ability to seamlessly upgrade.
This patch introduces a new client option, :adapter, which allows setting a default adapter (faraday has several) which supports persistent connections via:
Google::Apis::ClientOptions.default.adapter = :httpx # or
:net_http_persistent