Hi Scott, I think a timeout-like method would also be useful to properly close the output content stream, e.g. so that a subsequent long poll could be started and an html file could be properly finished with closing the body and html tags.
A closeListener would be good for this, provided that it could write into the stream before it would be closed, but then that method would have a better place on the CometServlet itself. Thanks and best regards, Robert ----- Original Message ----- From: "Scott Ferguson" <[EMAIL PROTECTED]> To: "General Discussion for the Resin application server" <resin-interest@caucho.com> Sent: Tuesday, October 30, 2007 4:11:31 PM (GMT) Europe/London Subject: Re: [Resin-interest] what happens with an idle CometServlet after more than "maxIdleSeconds" time elapsed? On Oct 30, 2007, at 5:59 AM, Robert Varga wrote: > Hi All, > > I have another question related to the comet servlet. > > What happens with a CometController/HTTP-response pair in the > suspended state for which the maxIdleSeconds elapsed? > > Is resume() called, or is the response automatically closed? It's automatically closed. We could add an addCloseListener method to the CometController if the application needs to be informed of the close event. It doesn't make sense to call resume(), though. > Also, where is the idle time measured from? The end of the last > resume or service method call returning true or the start of the > service method call? At the end of the last resume. -- Scott > > Thanks and best regards, > > Robert > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest