From: Bigmac Turdsplash Date: 2009-10-02T11:01:42+09:00 Subject: socket error handling... Net http loop { res = Net::HTTP.get_response(URI.parse('http://bigmac.t35.com/text.txt')) print res.body sleep 3 } this loop brakes when i get the (SocketError)... i get errors because of bad connection to my wireless network... i dont know how to handle this error and keep the script from crashing... :getaddrinfo: no address associated with hostname. (SocketError) :in `open' :in `connect :in `timeout' :in `timeout' :in `connect :in `do_star :in `start' -- Posted via http://www.ruby-forum.com/.