RFR: JDK-8025211 - Intermittent test failure: java/net/DatagramSocket/PortUnreachable.java
Daniel Fuchs
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:
>> Hi
>> please oblige and review the following changes
>>
>> http://cr.openjdk.java.net/~msheppar/8025211/webrev/
>> which address the issue raised in the bug
>> https://bugs.openjdk.java.net/browse/JDK-8025211
>>
>> 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
tested?
-- daniel
>
> -Alan
More information about the core-libs-dev
mailing list