class Async::HTTP::Pool

def next_available

def next_available
	@available.each do |resource, count|
		if count < resource.multiplex
			# We want to use this resource... but is it good?
			if resource.good?
				@available[resource] += 1
				
				return resource
			else
				retire(resource)
			end
		end
	end
	
	if !@limit or @available.count < @limit
		Async.logger.debug(self) {"No available resources, allocating new one..."}
		
		return create
	end
end