ndb/dns: dont override req->aborttime in udpquery()

overriding aborttime in udpquery() makes no sense. it causes
recursive queries to extend the timeout infinitely. nobody
but the issuer of the request should modify aborttime.
This commit is contained in:
cinap_lenrek 2013-04-11 19:33:07 +02:00
parent 5796736b70
commit 2647aef175

View file

@ -1404,7 +1404,6 @@ udpquery(Query *qp, char *mntpt, int depth, int patient, int inns)
pcntprob = likely[qp->type]; pcntprob = likely[qp->type];
reqtm = (patient? 2 * Maxreqtm: Maxreqtm); reqtm = (patient? 2 * Maxreqtm: Maxreqtm);
wait = weight(reqtm / 3, pcntprob); /* time for one udp query */ wait = weight(reqtm / 3, pcntprob); /* time for one udp query */
qp->req->aborttime = timems() + 3*wait; /* for all udp queries */
qp->udpfd = fd; qp->udpfd = fd;
rv = queryns(qp, depth, ibuf, obuf, wait, inns); rv = queryns(qp, depth, ibuf, obuf, wait, inns);