So if I use AsyncContext.start to run a Runnable. When that Runnable does
some work but not write to response, will AsyncListener.onTimeout be
invoked?


2013/5/24 Mark Thomas <ma...@apache.org>

> On 24/05/2013 09:16, jie tang wrote:
> > Thanks.
> >
> > So the only way to avoid the invocation of AsyncListener.onTimeout is
> that
> > we invoke AsyncContext.complete or AsyncContext.dispatch?
>
> Or write some content to the response.
>
> Mark
>
> >
> >
> > 2013/5/24 Mark Thomas <ma...@apache.org>
> >
> >> On 24/05/2013 09:05, jie tang wrote:
> >>> Hi,
> >>>
> >>> I don't understand the meaning of timeout of an asynchronous operation.
> >>> Servlet 3.0 says "The time out applies to the AsyncContext once the
> >>> container-initiated dispatch during which one of the
> >>> ServletRequest.startAsync methods was called has returned to the
> >> container."
> >>> But when is the completion of the asynchronous operation? The
> invocation
> >> of
> >>> AsyncContext.complete or AsyncContext.dispatch? Or something else?
> >>
> >> Either of those will end aysnc processing.
> >>
> >> Mark
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to