Changeset 1383
- Timestamp:
- 07/30/09 22:34:51 (4 years ago)
- Files:
-
- 1 modified
-
tags/pdns-3.1.7.1/pdns/pdns_recursor.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/pdns-3.1.7.1/pdns/pdns_recursor.cc
r1381 r1383 318 318 for(; chain.first != chain.second; chain.first++) { 319 319 if(chain.first->key.fd > -1) { // don't chain onto existing chained waiter! 320 /* 320 321 cerr<<"Orig: "<<pident.domain<<", "<<pident.remote.toString()<<", id="<<id<<endl; 321 322 cerr<<"Had hit: "<< chain.first->key.domain<<", "<<chain.first->key.remote.toString()<<", id="<<chain.first->key.id 322 323 <<", count="<<chain.first->key.chain.size()<<", origfd: "<<chain.first->key.fd<<endl; 323 324 */ 324 325 chain.first->key.chain.insert(id); // we can chain 325 326 *fd=-1; // gets used in waitEvent / sendEvent later on … … 1246 1247 void doResends(MT_t::waiters_t::iterator& iter, PacketID resend, const string& content) 1247 1248 { 1248 1249 1249 if(iter->key.chain.empty()) 1250 1250 return; 1251 1252 cerr<<"doResends called!\n"; 1251 // cerr<<"doResends called!\n"; 1253 1252 for(PacketID::chain_t::iterator i=iter->key.chain.begin(); i != iter->key.chain.end() ; ++i) { 1254 1253 resend.fd=-1; 1255 1254 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; 1257 1256 1258 1257 MT->sendEvent(resend, &content);