Changeset 1286

Show
Ignore:
Timestamp:
11/16/08 00:30:14 (16 months ago)
Author:
ahu
Message:

oops, we committed a heap of debugging..

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdns_recursor.cc

    r1276 r1286  
    318318  for(; chain.first != chain.second; chain.first++) { 
    319319    if(chain.first->key.fd > -1) { // don't chain onto existing chained waiter! 
     320      /* 
    320321      cerr<<"Orig: "<<pident.domain<<", "<<pident.remote.toString()<<", id="<<id<<endl; 
    321322      cerr<<"Had hit: "<< chain.first->key.domain<<", "<<chain.first->key.remote.toString()<<", id="<<chain.first->key.id 
    322323          <<", count="<<chain.first->key.chain.size()<<", origfd: "<<chain.first->key.fd<<endl; 
    323        
     324      */ 
    324325      chain.first->key.chain.insert(id); // we can chain 
    325326      *fd=-1;                            // gets used in waitEvent / sendEvent later on 
     
    12461247void doResends(MT_t::waiters_t::iterator& iter, PacketID resend, const string& content) 
    12471248{ 
    1248  
    12491249  if(iter->key.chain.empty()) 
    12501250    return; 
    1251  
    1252   cerr<<"doResends called!\n"; 
     1251  //  cerr<<"doResends called!\n"; 
    12531252  for(PacketID::chain_t::iterator i=iter->key.chain.begin(); i != iter->key.chain.end() ; ++i) { 
    12541253    resend.fd=-1; 
    12551254    resend.id=*i; 
    1256     cerr<<"\tResending "<<content.size()<<" bytes for fd="<<resend.fd<<" and id="<<resend.id<<endl; 
     1255    //    cerr<<"\tResending "<<content.size()<<" bytes for fd="<<resend.fd<<" and id="<<resend.id<<endl; 
    12571256 
    12581257    MT->sendEvent(resend, &content);