From: Otto Moerbeek Date: Thu, 12 Nov 2020 19:17:13 +0000 (+0100) Subject: Improved wording of comments X-Git-Tag: dnsdist-1.6.0-alpha0^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9633%2Fhead;p=thirdparty%2Fpdns.git Improved wording of comments Co-authored-by: Peter van Dijk --- diff --git a/pdns/iputils.cc b/pdns/iputils.cc index 92d74c4e5b..f1e1f987fc 100644 --- a/pdns/iputils.cc +++ b/pdns/iputils.cc @@ -242,7 +242,7 @@ int sendOnNBSocket(int fd, const struct msghdr *msgh) { int sendErr = 0; #ifdef __OpenBSD__ - // OpenBSD can and does return EAGIN on non-blocking datagram sockets + // OpenBSD can and does return EAGAIN on non-blocking datagram sockets for (int i = 0; i < 10; i++) { // Arbitrary upper bound if (sendmsg(fd, msgh, 0) != -1) { sendErr = 0; @@ -497,4 +497,3 @@ ComboAddress parseIPAndPort(const std::string& input, uint16_t port) return ComboAddress(input, port); } } - diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index c53c704e52..5263aaa835 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -592,7 +592,7 @@ private: #if !defined( __OpenBSD__) int tries = 10; #else - int tries = 2; // hit the reliable kernel random case for OpenBSD immediately, using sysctl net.inet.udp.baddynamic to exclude ports + int tries = 2; // hit the reliable kernel random case for OpenBSD immediately (because it will match tries==1 below), using sysctl net.inet.udp.baddynamic to exclude ports #endif ComboAddress sin; while (--tries) {