6878369: (ch) AsynchronousSocketChannel read/write methods that specify timeouts should not throw IAE

Rémi Forax forax at univ-mlv.fr
Mon Nov 22 05:39:33 PST 2010

  Le 19/11/2010 22:37, Alan Bateman a écrit :
> This one came up on the nio-discuss list some time ago. In 
> AsynchronousSocketChannel, the methods that have a timeout parameter 
> are specified to throw IAE when a negative timeout is used. This is 
> inconsistent with how timeouts are specified in j.u.c. To fix this, we 
> need to change these methods so that they treat values less than or 
> equal to zero to mean that the I/O does not have a timeout. The 
> implementation change is trivial and I've extended an existing test to 
> exercise the code with several timeout values. The webrev is here:
>    http://cr.openjdk.java.net/~alanb/6878369/webrev/
> Thanks,
> Alan.

Hi Alan,
Patch looks Ok.


More information about the nio-dev mailing list