From: Mark Probert Date: 2004-10-06T14:04:49+09:00 Subject: Timeout::timeout and Socket timeout Hi .. I would like to suggest that Socket trap ETIMEDOUT and raise Timeout::Error when a socket timeout occurs. This would allow the following: begin Timeout::timeout(to) do t = TCPSocket.new(host,port) # # do socket stuff # t.close end rescue Timeout::Error => e p "Timeout --> #{e}" rescue Exception => e p "Exception --> #{e}" end Rather than having a separate rescue clause. Any thoughts? -- -mark. (probertm @ acm dot org)