users@servlet-spec.java.net

[servlet-spec users] Re: Issues on Nonblocking IO

From: Rémy Maucherat <rmaucher_at_redhat.com>
Date: Thu, 31 Jan 2013 11:10:15 +0100

On 01/30/2013 06:40 AM, Eugene Chung(정의근) wrote:
> Okay. We need some proposals for this. Does we need
>
> int write(byte[])
> int write(byte[], start, length)
>
> APIs? Or what else?

The (simple) general rule is that the existing semantics of methods
don't change. Same for synchronization if you create your own threads.

There was no support in the expert group for adding the following
capabilities:
- Character async capabilities (it was present originally, but it was
removed later)
- Autoblocking in async mode (rather than making it illegal)
- Sendfile or similar for specialized output usecases

There are no real technical limitations to these actually (it has worked
fine for me for a while), but obviously it adds a bit of complexity.

Rémy