_ [Ruby] Net::HTTP#open_timeout ã®ä½¿ãæ¹ #!/usr/bin/ruby require 'net/http' Net::HTTP.start('www.example.com') do |http| response = http.head('/heartbeat.txt') p response end (ruby) Net::HTTP ã§æ¥ç¶ã«å¤±æãã㨠:!ruby heartbeat.rb /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/lib/ruby/1.8/net/http.rb:560:in `open' from /usr/lib/ruby/1.8/net/ht
{{#tags}}- {{label}}
{{/tags}}