jsr340-experts@servlet-spec.java.net

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

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Mon, 04 Feb 2013 13:53:38 -0800

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