RFR: 8259628: jdk/net/ExtendedSocketOption/AsynchronousSocketChannelNAPITest.java fails intermittently

Daniel Fuchs dfuchs at openjdk.java.net
Wed Jan 20 14:56:52 UTC 2021


On Wed, 20 Jan 2021 14:49:05 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> My understanding is that read will read a full datagram (or nothing) and write will write a full datagram (or nothing). Indeed a datagram is the smallest unit that can be read or written on a UDP channel. Two calls to write() will produce two datagrams. Two calls to read() will attempt to read two datagrams.

... but we don't have a datagram channel here: it's a regular socket channel ... sorry for the confusion. 
Yes - objections accepted...

-------------

PR: https://git.openjdk.java.net/jdk/pull/2162


More information about the net-dev mailing list