class Excon::Connection

def batch_requests(pipeline_params, limit = nil)

@pipeline_params [Array] pipeline_params An array of one or more optional params, override defaults set in Connection.new, see #request for details
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