RFR: JDK-8025211 - Intermittent test failure: java/net/DatagramSocket/PortUnreachable.java
daniel.fuchs at oracle.com
Fri Nov 29 16:41:47 UTC 2013
On 11/29/13 5:19 PM, Alan Bateman wrote:
> On 29/11/2013 14:21, Mark Sheppard wrote:
>> please oblige and review the following changes
>> which address the issue raised in the bug
>> an intermittent failure occurs on some windows test machines.
>> this replaces a Thread.sleep(5000) with explicit synchronization
>> between sender
>> and receiver via a CountDownLatch
> (cc'ing net-dev)
> Would an alternative here be to just get rid of the server thread (do
> both the send + receive on the main thread)?
Hmm... The message sent by the server is short enough so that it
should be stored in the client's socket buffer and received later
by the client, even though the client is not yet blocked waiting
in clientSock.receive() when the message is sent.
That might work.
Unless multi-threading was relevant to the configuration being
More information about the core-libs-dev