[Rubygems-developers] Good new on authenticating proxies!
Marcel Molina Jr.
marcel at vernix.org
Wed Feb 9 02:06:36 EST 2005
On Wed, Feb 09, 2005 at 04:52:37PM +1100, Assaph Mehr wrote:
> On Wed, 9 Feb 2005 00:30:32 -0500, Jim Weirich <jim at weirichhouse.org> wrote:
> > On Monday 07 February 2005 08:48 pm, Assaph Mehr wrote:
> > > For some reason going thru this proxy kept timeing out of #head, but
> > > #get fixed it. I've just tested this as:
> > >
> > > resp = begin
> > > http.head(path)
> > > rescue Timeout::Error
> > > http.get(path)
> > > end
> > How long does it take for the head call to time out?
> 60 seconds. Annoying but not critical.
> BTW, There's a Net::HTTP#read_timeout=(sec) setter in which you can
> control this. I've tried different values, but it doesn't seem to
> change the end result.
Why not just use timeout.rb from the stdlib?
Marcel Molina Jr. <marcel at vernix.org>
More information about the Rubygems-developers