git: 9front

Download patch

ref: 3249250cf7879cf78baec72455a93763e6254863
parent: 1295099737b550bd319fa55aa9b392f0d3b5c4ef
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Apr 11 15:33:07 EDT 2013

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.

--- a/sys/src/cmd/ndb/dnresolve.c
+++ b/sys/src/cmd/ndb/dnresolve.c
@@ -1404,7 +1404,6 @@
 		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);
--