jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: AsyncListener#complete and ReadListener#onError

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 12 Feb 2013 09:03:27 -0800

Any comments on below?
Shing Wai Chan

On 2/4/13 1:53 PM, Shing Wai Chan wrote:
> Hi,
>
> Since non-blocking IO is used in async or upgrade env, so users can use
> AsyncListener and Read/WriteListener together.
> We should clarify the ordering in the spec.
>
> When there is a timeout, AsyncListener#onTimeout is invoked,
> then which one of the following will be called next.
> a) ReadListener#onError
> b) AsyncListener#onComplete
>
> In my opinion, the AsyncListener should always be the last one to be
> called in this case.
> Any comment?
>
> Shing Wai Chan