What happens when non-blocking IO is used under non-async and
non-upgrade environment?
Should IllegalStateException be thrown if
ServletOutputStream#setWriteListener or
ServletInputStream#setReadListener is invoked when the corresponding
request is a non-async and non-upgrade?
Shing Wai Chan
On 12/17/12 5:49 PM, Shing Wai Chan wrote:
> In Chapter 3 and 5, we have
> "Non-blocking IO works with async request processing in Servlets and
> Filters as defined in Section 2.3.3.3, “Asynchronous processing” on
> page 2-10 and upgrade processing as defined in Section 2.3.3.5,
> “Upgrade Processing” on page 2-20. "
>
> The non blocking IO should also works with upgrade.
> In this case, we should have the following:
> "Non-blocking IO only works with async request processing in Servlets
> and Filters (as defined in Section 2.3.3.3, “Asynchronous processing”
> on page 2-10), and upgrade processing (as defined in Section 2.3.3.5,
> “Upgrade Processing” on page 2-20). "
>
> Shing Wai Chan
>
> On 12/17/12 3:31 PM, Shing Wai Chan wrote:
>> I have just uploaded a candidate draft for Servlet 3.1 Public Review.
>> The spec pdf and javadoc can be downloaded in the following:
>>
>> http://java.net/projects/servlet-spec/downloads/directory/Public%20Review
>>
>>
>> Regards,
>> Shing Wai Chan & Rajiv Mordani
>