Changeset 647 for trunk/pdns/pdns/pdns_recursor.cc
- Timestamp:
- 04/01/06 22:26:47 (7 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r637 r647 189 189 190 190 if(!getsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char*)&psize, &len) && psize > size) { 191 L<<Logger::Error<<"Not decreasing socket buffer size from "<<psize<<" to "<<size<< "\n";191 L<<Logger::Error<<"Not decreasing socket buffer size from "<<psize<<" to "<<size<<endl; 192 192 return; 193 193 } 194 194 195 195 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char*)&size, sizeof(size)) < 0 ) 196 L<<Logger::Error<<"Warning: unable to raise socket buffer size to "<<size<<": "<<strerror(errno)<< "\n";196 L<<Logger::Error<<"Warning: unable to raise socket buffer size to "<<size<<": "<<strerror(errno)<<endl; 197 197 } 198 198 … … 393 393 if(d_clientsock<0) 394 394 throw AhuException("Making a socket for resolver: "+stringerror()); 395 setReceiveBuffer(d_clientsock, 450000);395 setReceiveBuffer(d_clientsock, 200000); 396 396 struct sockaddr_in sin; 397 397 memset((char *)&sin,0, sizeof(sin)); … … 473 473 if(fd<0) 474 474 throw AhuException("Making a server socket for resolver: "+stringerror()); 475 setReceiveBuffer(fd, 2 50000);475 setReceiveBuffer(fd, 200000); 476 476 struct sockaddr_in sin; 477 477 memset((char *)&sin,0, sizeof(sin));