Created
April 22, 2013 11:46
-
-
Save Habbie/5434134 to your computer and use it in GitHub Desktop.
fixes the mentioned axfr problems for me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pdns/misc.cc | |
=================================================================== | |
--- pdns/misc.cc (revision 924) | |
+++ pdns/misc.cc (working copy) | |
@@ -202,6 +202,10 @@ | |
while (replen) { | |
ret = write(outsock, buffer, replen); | |
+ while(ret == -1 && errno == EAGAIN) { | |
+ Utility::usleep(1); | |
+ ret = write(outsock, buffer, replen); | |
+ } | |
if(ret < 0) | |
return ret; | |
if(!ret) | |
Index: pdns/tcpreceiver.cc | |
=================================================================== | |
--- pdns/tcpreceiver.cc (revision 924) | |
+++ pdns/tcpreceiver.cc (working copy) | |
@@ -376,8 +376,11 @@ | |
if(!((++count)%chunk)) { | |
count=0; | |
- if(sendDelPacket(outpacket, outsock)<0) // FIXME: this leaks memory! | |
- return 0; | |
+ if(sendDelPacket(outpacket, outsock)<0) { | |
+ // FIXME: this leaks memory! | |
+ L<<Logger::Error<<"AXFR of domain '"<<target<<"' to "<<q->getRemote()<<" FAILED during transmission"<<endl; | |
+ return 0; | |
+ } | |
outpacket=q->replyPacket(); | |
outpacket->setCompress(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment