Skip to content

Instantly share code, notes, and snippets.

@rafer
Created May 28, 2011 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafer/996603 to your computer and use it in GitHub Desktop.
Save rafer/996603 to your computer and use it in GitHub Desktop.
require "open-uri"
loop do
begin
open("http://google.com", :read_timeout => 5)
rescue
puts "Timed out at #{Time.now}"
next
end
`say connected`
break
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment