NIO based SocketImpl to replace legacy PlainSocketImpl

Alan Bateman Alan.Bateman at oracle.com
Tue Jan 29 10:48:56 UTC 2019


On 29/01/2019 10:21, Bernd Eckenfels wrote:
> How will that look like on Windows, will it use IO Completion Ports? I 
> guess scalability becomes much more of an issue with typical thousands 
> of classic sockets.
>
> What’s the expected performance of this? The blocking IO had a lot 
> less latency compared to Channels, is there some regression expected 
> or is a goal to also improve latency compared with the classic 
> implementation?
>
There's nothing specific to Windows in this. Reading and writing ends up 
doing WSARecv/WSASend on sockets configured blocking, non-blocking with 
using timeouts. So no I/O completion ports in the picture, also no 
channels either. There is a lot of old code using Socket/ServerSocket so 
we don't want to regress performance.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190129/59fec382/attachment.html>


More information about the net-dev mailing list