From: Minero Aoki Date: 2001-12-30T19:24:59+09:00 Subject: [ruby-talk:29714] Re: http timeout? In mail "[ruby-talk:29678] http timeout?" "Mark Hahn" wrote: > If I try to connect to an http server with Net::HTTP.new().get and the > server doesn't respond, the get call never returns (I've waited 3 minutes). > Shouldn't there be a timeout? Try this: http = Net::HTTP.new(host,port) http.open_timeout = 30 # secs http.read_timeout = 60 # secs .... Sould I set timeout limit by default? -- Minero Aoki