Found different in behavior of SocketInputStream#read in JDK13

Alan Bateman Alan.Bateman at oracle.com
Wed Jul 31 14:18:37 UTC 2019


On 31/07/2019 06:01, Enrico Olivelli wrote:
> :
>
> The server side implementation is here, is mostly a wrapper round 
> ServerSocket, it tries to detect if the client is willing to use SSL 
> or not.
>
> https://github.com/apache/zookeeper/blob/master/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/UnifiedServerSocket.java 
>
>
I suspect this issue is about closing a socket while there is bytes in 
the socket buffer waiting to be sent. I would be curious if this test 
can be run on Windows as that the implementation has always gracefully 
closed the connection when linger is not enabled. The new implementation 
does the same but does so consistently on all platforms. If Máté gets 
cycles to create a reproducer then we should be able to check that quickly.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190731/bd459402/attachment-0001.html>


More information about the nio-dev mailing list