> Ard Schrijvers wrote:
> > That is correct. Currently, there is no timeout whatsoever 
> mechanism 
> > for external sources. If, at the first fetch, the resource is not 
> > available, your app will hang: this is though much better 
> than hanging 
> > every time the external source is not available IMO :-)
> > 
> > Anyway, you may do a request for it, which would have to be 
> planned, 
> > or try to add timeouts yourself,
> Do you use httpclient? Then it would be quite easy to add 
> timeout settings.

It's a little harder because it works through the cocoon source
factories, which, in case of http, which is one of the source factories,
uses a httpclient, but, might also use indirectly, for example through
repository protocol, use a httpclient. I am not sure wether you can
easily change this for all source protocols. This should be sorted out
if it needs to be added. 

-Ard

> 
> Regards,
> Bart
> 
> 
> > 
> > Regards Ard
> > 
> > 
> >> Hi Ard,
> >>
> >> What will happen if the resource is not available directly after a 
> >> restart? I fear that the application may hang in that case.
> >>
> >> Regards,
> >>
> >> Wouter
> >>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] on behalf of Ard 
> >> Schrijvers
> >> Sent: Mon 4/28/2008 10:40 AM
> >> To: Hippo CMS development public mailinglist
> >> Subject: RE: [HippoCMS-dev] Connection timeouts
> >>  
> >> Hello Wouter,
> >>
> >> Did you take a look at [1]. I just added the asynchronic 
> gets which 
> >> should fix the problem you have
> >>
> >> -Ard
> >>
> >> [1]
> >> http://www.hippocms.org/display/CMS/Using+asynchronic+get+for+
> >> cached+con
> >> tent
> >>
> >>> Wouter Zelle wrote:
> >>>> Hi,
> >>>>
> >>>> We are worried about doing external http requests from
> >>> cocoon that never get a response and may hang cocoon for a
> >> very long
> >>> time. Does anyone have experience with setting timeouts on the 
> >>> requests?
> >>>
> >>> I'm not sure if you can set timeouts in cocoon on external
> >> resources. 
> >>> I do know Ard has been working on a scheme that fetches 
> the exteral 
> >>> resources in the background. It uses the cached version
> >> until it has
> >>> succeeded in getting the external resource. Ard is not in
> >> the office
> >>> this week and will be back on Monday.
> >>>
> >>> Regards,
> >>> Bart
> >>>
> >>> --
> >>> Hippo B.V.  -  Amsterdam
> >>> Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466
> >>>
> >>> Hippo USA Inc.  -  San Francisco
> >>> 101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
> >>> -----------------------------------------------------------------
> >>> http://www.onehippo.com   -  [EMAIL PROTECTED]
> >>> -----------------------------------------------------------------
> >>> ********************************************
> >>> Hippocms-dev: Hippo CMS development public mailinglist
> >>>
> >> ********************************************
> >> Hippocms-dev: Hippo CMS development public mailinglist
> >>
> >>
> >>
> >>
> > ********************************************
> > Hippocms-dev: Hippo CMS development public mailinglist
> 
> 
> --
> Hippo B.V.  -  Amsterdam
> Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466
> 
> Hippo USA Inc.  -  San Francisco
> 101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
> -----------------------------------------------------------------
> http://www.onehippo.com   -  [EMAIL PROTECTED]
> -----------------------------------------------------------------
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to