jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [servlet-spec users] Re: Re: Re: AsyncIO from ontimeout

From: Greg Wilkins <gregw_at_webtide.com>
Date: Tue, 1 Nov 2016 18:16:17 +1100

On 1 November 2016 at 17:51, Stuart Douglas <sdouglas_at_redhat.com> wrote:

> On Tue, Nov 1, 2016 at 5:18 PM, Greg Wilkins <gregw_at_webtide.com> wrote:
> >
> > Mark, Stuart, et al,
> >
> > I'm not sold on the infinite loop issue, because if we don't set a
> timeout
> > the startAsync cycle will go forever anyway.
>
> I'm not sure what you mean by this?
>

I'm just saying there is not much difference between an app the does
setTimeout(0) once and one that does setTimeout(30000) every 30s. But it
is a bit of a mute point as I'm convinced that doing this via setTimeout is
wrong anyway.


> I think it would make more
> sense to clear the read/write listener on dispatch(), rather than
> onError or onTimeout.
>

Oh good idea! It is dispatch that signals the start of a new cycle, which
may be synchronous or asynchronous/

cheers


-- 
Greg Wilkins <gregw@webtide.com> CTO http://webtide.com