I use a Ruby limiter to call multiple URLs at once, like
require 'rubygems'
require 'curb'
easy_options = {:follow_location => true}
multi_options = {:pipeline => true}
Curl::Multi.get(['http://www.example.com','http://www.trello.com','http://www.facebook.com','http://www.yahoo.com','http://www.msn.com'], easy_options, multi_options) do|easy|
puts easy.last_effective_url
end
I have a problem: I want to break subsequent asynchronous calls when any url timeout occurred, is this possible?
source
share