]> granicus.if.org Git - pdns/commitdiff
add comment, plus add dnslabeltext.rl to recursor tarball as requested in #1406....
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 27 May 2014 08:16:11 +0000 (10:16 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 27 May 2014 08:16:11 +0000 (10:16 +0200)
pdns/dist-recursor
pdns/pdns_recursor.cc

index 6a2e724a04e96eca0fa9ec8771903ab7738c620f..250b4d1888c033827728bdc911b1f4201f440ffc 100755 (executable)
@@ -65,6 +65,7 @@ cp -a ext/polarssl-1.3.2/library/aes.c ext/polarssl-1.3.2/library/padlock.c $DIR
 cp -a ext/yahttp/ $DIRNAME/ext/
 mkdir $DIRNAME/rrd
 cp tools/rrd/{create,update,makegraphs,index.html} $DIRNAME/rrd
+cp dnslabeltext.rl $DIRNAME
 cp pdns-recursor.init.d $DIRNAME
 cp docs/pdns_recursor.1 docs/rec_control.1 $DIRNAME
 cp configure-recursor $DIRNAME/configure
index e6f958d6bf2754462aa781711d741adccca8c906..4d1fe248746c1a9cef51911e771fef73dd240fe5 100644 (file)
@@ -694,7 +694,7 @@ void startDoResolve(void *p)
     uint64_t newLat=(uint64_t)(spent*1000000);
     newLat = min(newLat,(uint64_t)(g_networkTimeoutMsec*1000)); // outliers of several minutes exist..
     g_stats.avgLatencyUsec=(1-1.0/g_latencyStatSize)*g_stats.avgLatencyUsec + (float)newLat/g_latencyStatSize;
-
+    // no worries, we do this for packet cache hits elsewhere
     delete dc;
     dc=0;
   }
@@ -875,7 +875,7 @@ string* doProcessUDPQuestion(const std::string& question, const ComboAddress& fr
     if(!SyncRes::s_nopacketcache && t_packetCache->getResponsePacket(question, g_now.tv_sec, &response, &age)) {
       if(!g_quiet)
         L<<Logger::Error<<t_id<< " question answered from packet cache from "<<fromaddr.toString()<<endl;
-
+      
       g_stats.packetCacheHits++;
       SyncRes::s_queries++;
       ageDNSPacket(response, age);