7176630: (sc) SocketChannel.write does not write more than 128k when channel configured blocking [win]
chris hegarty
chris.hegarty at oracle.com
Wed Jun 13 14:39:23 PDT 2012
Source changes look fine to me.
Are gathering operations effected?
-Chris.
On 13/06/2012 14:54, Alan Bateman wrote:
>
> I need a reviewer for a small change to the SocketChannel.write
> implementation on Windows. The issue on Windows is that we limit the
> buffer size to 128k-1 because asynchronous close doesn't work on Windows
> for sizes later than that (the long standing Microsoft recommendation is
> to use <=64k). The issue with limiting the size of the I/O operation is
> that the write method may return a value less than what is expected when
> the channel is configured blocking and this can cause problem for
> applications that don't check the return value. The changes just convert
> the large write into multiple calls to WSASend. The webrev with the
> changes is here:
>
> http://cr.openjdk.java.net/~alanb/7176630/webrev/
>
> Thanks,
> Alan.
More information about the nio-dev
mailing list