in lib/elastic/transport/transport/base.rb [85:92]
def get_connection(options = {})
resurrect_dead_connections! if Time.now > @last_request_at + @resurrect_after
@counter_mtx.synchronize { @counter += 1 }
reload_connections! if reload_connections && (counter % reload_after).zero?
connections.get_connection(options)
end