In mail "[ruby-talk:17096] Net::HTTP"
    Alan Tsang <atsang / hk.linkage.net> wrote:

> Is there a way to raise an error if the the connection get stuck and no 
> data is coming throught the http connection for a configurable length of 
> time?

Try below:

> filenames=[an array of filenames]
> http=Net::HTTP.new(hostname)

  http.read_timeout = 30   # 30 sec

> http.start

Minero Aoki