Hi. >In article <200505052255.j45MtVam031547 / rubyforge.org>, > noreply / rubyforge.org writes: > >> open-uri is very handy, but as far as I can tell I can't change the read timeout >> on the underlying socket. I end up having to hack a workaround into Net::HTTP >> to allow me to set a timeout on its instances before opening the URI. > >Does adding :read_timeout option solve the problem? This is old entry, but Nicholas was waiting for this on RubyForge without notice of redirecting to ruby-core. I'll quote his reply bellow. http://rubyforge.org/tracker/index.php?func=detail&aid=1878&group_id=426&atid=1698 >I don't have the latest libraries, but I made what I think >is an equivalent patch (the actual setting of the timeout I >put in class HTTP's proxy_open() method) and it worked fine. >Thanks! >Nicholas