Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2007/0416/2

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/sys/src/cmd/ndb/dnsdebug.c
% cat >/sys/lib/dist/changes/1176748206.0.txt << EOF
Be less patient waiting for request timeouts (wait only 30 seconds
instead of 60).
EOF
 [geoff] --rw-rw-r-- M 41 glenda sys 8741 Apr 16 14:09 sys/src/cmd/ndb/dnsdebug.c
	/n/sourcesdump/2007/0416/plan9/sys/src/cmd/ndb/dnsdebug.c:319,325 - 
	/n/sourcesdump/2007/0417/plan9/sys/src/cmd/ndb/dnsdebug.c:319,325
	  			continue;
	  		}
	  		req.isslave = 1;
	- 		req.aborttime = now + Maxreqtm*2;	/* be patient */
	+ 		req.aborttime = now + Maxreqtm;
	  		*l = dnresolve(rp->host->name, Cin, Ta, &req, 0, 0, Recurse, 0, 0);
	  		while(*l != nil)
	  			l = &(*l)->next;
	/n/sourcesdump/2007/0416/plan9/sys/src/cmd/ndb/dnsdebug.c:421,427 - 
	/n/sourcesdump/2007/0417/plan9/sys/src/cmd/ndb/dnsdebug.c:421,427
	  	memset(&req, 0, sizeof req);
	  	getactivity(&req, 0);
	  	req.isslave = 1;
	- 	req.aborttime = now + Maxreqtm*2;	/* be patient */
	+ 	req.aborttime = now + Maxreqtm;
	  	rr = dnresolve(buf, Cin, type, &req, 0, 0, Recurse, rooted, 0);
	  	if(rr){
	  		print("----------------------------\n");

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].