------art_44342_15825348.1181910570242
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Yes, i know that. Thanks. :)

But i confused by the read_timeout option of the open method.

On 6/15/07, Pat Maddox <pergesu / gmail.com> wrote:
>
> On 6/15/07, sishen <yedingding / gmail.com> wrote:
> > I met a problem using open-uri.
> >
> > I want to set the timeout of the open process. And i see the open method
> has
> > a option named "read_timeout".
> > So i just code as
> >   open("www.abc.com", {:read_timeout 10}).
> >
> > But, i can't see the effect. What's wrong with that?  Any help thanks.
> >
>
> You can use the timeout library.
>
> timeout(10) do
>   open "www.abc.com"
> end
>
> it raises a TimeoutError if the request doesn't complete in 10 seconds.
>
> Pat
>
>

------art_44342_15825348.1181910570242--