On 4/11/2014 10:15, Xuelei Fan wrote:
When line 374 get called, the test is nearly done (client complete its jobs, and server accepted all connections).
If it's nearly done and no bad thing will happen, then you don't need to call serverThread.join(120000). Otherwise, you risk a false success.
Is there a way to find out if the exit of thread.join(time) is due to thread exit or timeout? If so, you can throw an exception if it's a timeout.
--Max
http://cr.openjdk.java.net/~xuelei/8037557/webrev.00/