Brandur 650114abca 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.
2019-08-20 13:54:34 -07:00
..
2019-08-20 11:35:24 -07:00