After doing some research, this was happening in Ruby's XMLRPC::Client
library - which uses NET::HTTP
. The client uses the start()
method in NET::HTTP
which keeps the connection open for future requests.
This happened precisely at 30 seconds after the last requests - so my assumption here is that the server it's hitting is closing requests after that time. I'm not sure what the default is for NET::HTTP
to keep the request open - but I'm about to test with 60 seconds to see if that solves the issue.