Skip to content

Commit

Permalink
improve logging of sendmsg order - we may be logging errors about inv…
Browse files Browse the repository at this point in the history
…alid remote addresses
  • Loading branch information
ahupowerdns committed Mar 21, 2014
1 parent 3cdaed5 commit 4f217ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/nameserver.cc
Expand Up @@ -329,7 +329,7 @@ void UDPNameserver::send(DNSPacket *p)
L<<Logger::Error<<"Weird, trying to send a message that needs truncation, "<< buffer.length()<<" > "<<p->getMaxReplyLen()<<endl; L<<Logger::Error<<"Weird, trying to send a message that needs truncation, "<< buffer.length()<<" > "<<p->getMaxReplyLen()<<endl;
} }
if(sendmsg(p->getSocket(), &msgh, 0) < 0) if(sendmsg(p->getSocket(), &msgh, 0) < 0)
L<<Logger::Error<<"Error sending reply with sendmsg (socket="<<p->getSocket()<<"): "<<strerror(errno)<<endl; L<<Logger::Error<<"Error sending reply with sendmsg (socket="<<p->getSocket()<<", dest="<<p->d_remote.toStringWithPort()<<"): "<<strerror(errno)<<endl;
} }


static bool HarvestDestinationAddress(struct msghdr* msgh, ComboAddress* destination) static bool HarvestDestinationAddress(struct msghdr* msgh, ComboAddress* destination)
Expand Down

0 comments on commit 4f217ce

Please sign in to comment.