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

Daniel Fuchs dfuchs at openjdk.java.net
Fri Jan 22 16:55:43 UTC 2021


On Fri, 22 Jan 2021 16:14:26 GMT, Mark Sheppard <msheppar at openjdk.org> wrote:

> iteration N write n bytes, reads m where m < n (The underlying TCP protocol machine has sent m bytes and not the full n)
> iteration N +1 write n bytes, read n + (n-m) i.e. the current write + the residue from the write in iteration N
> 
> and then an assert nread <= nsent will fail ?

Good point. You'd have to aggregate the results across multiple read writes and that would clutter the test.
OK - I withdraw my suggestion. What you have now is good enough Patrick.
Approved.

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

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


More information about the net-dev mailing list