Hi John, if I understand correctly, the connectionTimeout has more to
do with ensuring proper handling of requests between mod_jk and
tomcat.  From the docs "connectionTimeout - The number of milliseconds
this Connector will wait, after accepting a connection, for the
request URI line to be presented."  The scenario you mention is one of
the things I'm searching for as well.   I fairly certain
connectionTimeout doesn't do what we're after (timeout a request
thread in OpenBD after a certain amount of time.   Let me know if you
figure it out.  Cheers, Rich

Some references if you haven't already come across them:
http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html
http://tomcat.apache.org/connectors-doc/reference/workers.html
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


On Feb 9, 1:21 pm, john <[email protected]> wrote:
> Alan, do you know how to set a request timeout in Tomcat ?
>
> If I set connectionTimeout="20000" to the default connector of Tomcat
> (standalone mode) , a page with a cfpause or an infinite loop will
> continue to running after the connectionTimeout value is reached.
>
> With Jetty, it's easier ?
>
> Thanks.
>
> John
>
> On 6 fév, 20:34, Alan Williamson <[email protected]> wrote:
>
> > this is one of those things that doesn't make a whole lot of sense to
> > reproduce as most J2EE servers provide this functionality for you to
> > stop long running requests from consuming resources.
>
> > The J2EE engine is in a much better position to actually do something
> > about it, nuking the thread in question and cleaning up resources.
>
> > So it sounds like your inTomcatif you are referring to mod_jk -- look
> > at thetomcatsettings/configuration.   Jetty has it in its jetty.xml file.
>
> > Richard Taylor wrote:
> > > I see that setting therequesttimeouton a perrequestbasis is not
> > > supported in OpenBD, at least via the cfsettings / requesttimeout
> > > attribute [1].   Two questions:
>
> > > 1. Is there any other way to set thetimeoutfor a particularrequest
> > > in OpenBD?  I'm not seeing it and I'm wondering if I'm missing
> > > something.
>
> > > 2. Is there a way to set this value (a globalrequesttimeout) for all
> > > requests coming in?  I see the sessiontimeout in bluedragon.xml but I
> > > don't think that's what we're after.   At this point the only way I've
> > > found totimeoutrequests is by setting the socket_timeout on our
> > > mod_jk setup (or other settings way out "there").  Seems like there
> > > would be a way to set this in OpenBD?- Masquer le texte des messages 
> > > précédents -
>
> > - Afficher le texte des messages précédents -

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to