Changeset 1118
- Timestamp:
- 12/29/07 15:41:29 (10 months ago)
- Files:
-
- trunk/pdns/pdns/pdns_recursor.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/pdns_recursor.cc
r1098 r1118 146 146 pident.sock=sock; 147 147 pident.outMSG=data; 148 148 149 149 g_fdm->addWriteFD(sock->getHandle(), handleTCPClientWritable, pident); 150 150 string packet; 151 151 152 int ret=MT->waitEvent(pident,&packet,1); 152 int ret=MT->waitEvent(pident, &packet, 1); 153 153 154 if(!ret || ret==-1) { // timeout 154 155 g_fdm->removeWriteFD(sock->getHandle()); … … 417 418 418 419 if(::arg()["hint-file"].empty()) { 419 static const char*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53", 420 "192.36.148.17","192.58.128.30", "193.0.14.129", "198.32.64.12", "202.12.27.33"}; 420 static const char*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", 421 "192.112.36.4", "128.63.2.53", 422 "192.36.148.17","192.58.128.30", "193.0.14.129", "199.7.83.42", "202.12.27.33"}; 421 423 DNSResourceRecord arr, nsrr; 422 424 arr.qtype=QType::A; … … 1199 1201 { 1200 1202 PacketID* pid=any_cast<PacketID>(&var); 1201 1202 1203 int ret=send(fd, pid->outMSG.c_str() + pid->outPos, pid->outMSG.size() - pid->outPos,0); 1203 1204 if(ret > 0) {