The reason a loop is needed here is that both the TCT and UDP servers must 
listen on the same port number. With your fix, the TCP server finds a free 
port, but I doubt if it's free for the UDP server.

--Max


> On Jul 8, 2016, at 2:35 PM, John Jiang <sha.ji...@oracle.com> wrote:
> 
> Hi,
> Would you like to review this patch for removing unnecessary usages on 
> jdk.testlibrary.Utils.getFreePort() from security-libs tests?
> In OpenJDK, I find only sun/security/krb5/auto/KDC.java should be modified 
> for this issue.
> If I miss something, please let me know.
> 
> Issue: https://bugs.openjdk.java.net/browse/JDK-8160029
> Webrev: http://cr.openjdk.java.net/~jjiang/8160029/webrev.00
> 
> Thanks!
> 
> John Jiang
> 
> 

Reply via email to