From 2647aef1757e41fb7f0544a6f1ab78ee928e17d9 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 11 Apr 2013 19:33:07 +0200 Subject: [PATCH] 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. --- sys/src/cmd/ndb/dnresolve.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/src/cmd/ndb/dnresolve.c b/sys/src/cmd/ndb/dnresolve.c index 0f2767176..56b8024f9 100644 --- a/sys/src/cmd/ndb/dnresolve.c +++ b/sys/src/cmd/ndb/dnresolve.c @@ -1404,7 +1404,6 @@ udpquery(Query *qp, char *mntpt, int depth, int patient, int inns) pcntprob = likely[qp->type]; reqtm = (patient? 2 * Maxreqtm: Maxreqtm); wait = weight(reqtm / 3, pcntprob); /* time for one udp query */ - qp->req->aborttime = timems() + 3*wait; /* for all udp queries */ qp->udpfd = fd; rv = queryns(qp, depth, ibuf, obuf, wait, inns);