Update: I've tried doing it using EventMachine, which won't work either: EM.run do make_request(host) end
def make_request begin client = EventMachine::HttpRequest.new(host).get host.set_active rescue host.set_inactive ensure EM.stop end end Now it's only executing the set_active or set_inactive methods every five seconds, even though I run this every second for 5 hosts. It should query 5 hosts per second. What am I missing? Is this EM- related? Should I have EventMachine check for responses more often? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=.