update RTW_6.2.0 branch with dev fixes
@@ -29,8 +29,6 @@ public class DNSUtilities {
/**
* Find all SRV Record using DNS.
*
- * You can then use {@link DNSRecordsSRVCollection#getBestRecord()} to find the best candidate (for instance for Round-Robin calls)
- *
* @param dnsSrvRecordToFind
* the DNS record, for instance: _ldap._tcp.dc._msdcs.DOMAIN.COM to find all LDAP servers in DOMAIN.COM
* @return the collection of records with facilities to find the best candidate
@@ -62,7 +60,9 @@ public class DNSUtilities {
}
}
}
+ srvRecord.close();
}
+ allServers.close();
return records;
}
}
