[9] RFR of 8087304: (ch) java/nio/channels/DatagramChannel/EmptyBuffer.java received 4 times while expected 3

Alan Bateman Alan.Bateman at oracle.com
Fri Jun 12 19:59:06 UTC 2015

On 12/06/2015 20:49, Brian Burkhalter wrote:
> NB: This thread supersedes http://mail.openjdk.java.net/pipermail/nio-dev/2015-June/003191.html.
> Please review at your convenience.
> Issue:	https://bugs.openjdk.java.net/browse/JDK-8087304
> Patch:	http://cr.openjdk.java.net/~bpb/8087304/webrev.00/
> The patch changes the test server to count only datagrams from the test client. This patch was modified from the previous version to pass the client address to the server directly instead of assigning it to a static variable.
This appears to have the same issue. Did you consider passing the 
address to the Server as part of creating it, ie:

DatagramChannel dc = DatagramChannel.open();
dc.bind(new InetSocketAddress(0));
Server server = new Server(dc.getLocalAddress());


More information about the nio-dev mailing list