mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-23 11:58:03 +00:00
6955783: ServiceUnavailableException caught even the secondary DNS is available
Reviewed-by: vinnie
This commit is contained in:
parent
d864e54627
commit
7e86c31fee
@ -525,11 +525,11 @@ public class DnsClient {
|
||||
}
|
||||
byte[] pkt;
|
||||
if ((pkt = (byte[]) resps.get(xid)) != null) {
|
||||
checkResponseCode(new Header(pkt, pkt.length));
|
||||
synchronized (queuesLock) {
|
||||
resps.remove(xid);
|
||||
reqs.remove(xid);
|
||||
}
|
||||
checkResponseCode(new Header(pkt, pkt.length));
|
||||
|
||||
if (debug) {
|
||||
dprint("FOUND (" + Thread.currentThread() +
|
||||
@ -562,12 +562,12 @@ public class DnsClient {
|
||||
dprint("XID MATCH:" + xid);
|
||||
}
|
||||
|
||||
checkResponseCode(hdr);
|
||||
// remove the response for the xid if received by some other thread.
|
||||
synchronized (queuesLock) {
|
||||
resps.remove(xid);
|
||||
reqs.remove(xid);
|
||||
}
|
||||
checkResponseCode(hdr);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user