Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase connection keep alive timeout to 30 seconds (#836)
One thing I forgot to look into was how long Ruby will hold a connection open by default. It turns out that the language default is very low at only two seconds. Here we increase it to 30 seconds, which is a more reasonable default. I took this number from Go's `DefaultTransport`, which seems to have been working pretty well so far. I tested with a script that keeps a connection idle to Stripe for a long period of time before issuing a new request and everything seems to be working well.
- Loading branch information