You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/05/14 21:48:37 UTC
[c2] add timeout parameter to map:generator?
i just spent several minutes trying to track down what i thought was a
caching or threading problem in c2 - one of my aggregating pages was
taking a very long time to process, frequently timing out before it got to
my browser. as it turns out, the problem was that the aggregate feed
(slashdot) was taking a looooong time to return results. anyone opposed to
adding a timeout parameter for content retrieved from an external source?
e.g.
<map:match pattern="feeds/slashdot">
<map:generate src="http://slashdot.org/slashdot.xml" timeout="5"/>
<map:serialize/>
</map:match>
giving slashdot 5 precious seconds to respond before simply ignoring the
feed.
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [c2] add timeout parameter to map:generator?
Posted by Santiago Gala <sg...@hisitech.com>.
Donald Ball wrote:
> i just spent several minutes trying to track down what i thought was a
> caching or threading problem in c2 - one of my aggregating pages was
> taking a very long time to process, frequently timing out before it got to
> my browser. as it turns out, the problem was that the aggregate feed
> (slashdot) was taking a looooong time to return results. anyone opposed to
Also, Filegenerator should be changed to URLGenerator, and use the
"Expires" and "IfModifiedSince" headers to work out a way into the
cache. A minimum expiration time is much better than a time out, for
external content aggregation.
My experience in Jetspeed is that external URLs fail quite a bit, so it
is better to have them cached with a minimum expiration time. With the
current cocoon caching architecture, this should be simple. Also, with
multithreading issues, a site with 100 users aggregating Slashdot xml
would hit them quite hard in parallel... Jetspeed has been a DoS tool
until we cleaned the cache code a bit.
BTW, I would also try to access every resource as URL (a recent bug on
file:/ urls shows the kind of problems incurred when we encode
assumptions on url format). Also, if the war is not expanded or the
protocol is "classloader:" or "jndi:", this will prepare cocoon for the
future.
I could take a look into this if nobody does, but not before a couple of
weeks. I'm overwhelmed currently :)
> adding a timeout parameter for content retrieved from an external source?
> e.g.
>
> <map:match pattern="feeds/slashdot">
> <map:generate src="http://slashdot.org/slashdot.xml" timeout="5"/>
> <map:serialize/>
> </map:match>
>
> giving slashdot 5 precious seconds to respond before simply ignoring the
> feed.
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Fresh checkout, XSP, and i18n
Posted by Jason Foster <ja...@uwaterloo.ca>.
...are currently having a small disagrement. The log indicates that the
file "/docs/samples/i18n/navbar.xsl" cannot be found.
Why it's even looking I have no idea since I clicked on the "Simple XSP"
link!
Jason Foster
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [c2] add timeout parameter to map:generator?
Posted by giacomo <gi...@apache.org>.
On Mon, 14 May 2001, Donald Ball wrote:
> i just spent several minutes trying to track down what i thought was a
> caching or threading problem in c2 - one of my aggregating pages was
> taking a very long time to process, frequently timing out before it got to
> my browser. as it turns out, the problem was that the aggregate feed
> (slashdot) was taking a looooong time to return results. anyone opposed to
> adding a timeout parameter for content retrieved from an external source?
No, not opposing.
Giacomo
> e.g.
>
> <map:match pattern="feeds/slashdot">
> <map:generate src="http://slashdot.org/slashdot.xml" timeout="5"/>
> <map:serialize/>
> </map:match>
>
> giving slashdot 5 precious seconds to respond before simply ignoring the
> feed.
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [c2] add timeout parameter to map:generator?
Posted by Davanum Srinivas <di...@yahoo.com>.
Donald,
How about using the usual pattern for passing parameters? Am +1 on adding a timeout, but prefer
the pattern below:
<map:match pattern="feeds/slashdot">
<map:generate src="http://slashdot.org/slashdot.xml">
<parameter name="timeout" value="5"/>
</map:generate>
<map:serialize/>
</map:match>
Thanks,
dims
--- Donald Ball <ba...@webslingerZ.com> wrote:
> i just spent several minutes trying to track down what i thought was a
> caching or threading problem in c2 - one of my aggregating pages was
> taking a very long time to process, frequently timing out before it got to
> my browser. as it turns out, the problem was that the aggregate feed
> (slashdot) was taking a looooong time to return results. anyone opposed to
> adding a timeout parameter for content retrieved from an external source?
> e.g.
>
> <map:match pattern="feeds/slashdot">
> <map:generate src="http://slashdot.org/slashdot.xml" timeout="5"/>
> <map:serialize/>
> </map:match>
>
> giving slashdot 5 precious seconds to respond before simply ignoring the
> feed.
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org