class Excon::Connection
def batch_requests(pipeline_params, limit = nil)
limit by default, typically 256.
batches of @limit [Numeric] requests. This is your soft file descriptor
Sends the supplied requests to the destination host using pipelining in
def batch_requests(pipeline_params, limit = nil) limit ||= Process.respond_to?(:getrlimit) ? Process.getrlimit(:NOFILE).first : 256 responses = [] pipeline_params.each_slice(limit) do |params| responses.concat(requests(params)) end responses end