Closed danielnho22 closed 3 years ago
@danielnho22 Good call. Any reason why this shouldn't just be made the default?
@ruckus That's a good question. I can't find any info of why net-http-persistent
isn't just the default in Faraday. If we're cool with it, I can make it the default for quickbooks-ruby
.
@ruckus The default is now net-http-persistent
I imagine that most people using this gem are consistently making requests to the same servers and re-using connections to them in a thread-safe context would be preferable.
@danielnho22 thanks!!!
Currently,
NetHttp
is used by default for Faraday. Ifquickbooks-ruby
wants to be used in a thread-safe context, we should replace thenet-http
adapter with something likenet-http-persistent
.This allows that to be done by setting
Quickbooks.http_adapter