]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Improved wording of comments 9633/head
authorOtto Moerbeek <otto@drijf.net>
Thu, 12 Nov 2020 19:17:13 +0000 (20:17 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Nov 2020 19:17:13 +0000 (20:17 +0100)
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
pdns/iputils.cc
pdns/pdns_recursor.cc

index 92d74c4e5b0f4d83647f06e9cfdc54a6fcabd493..f1e1f987fc6691add3d869161cc548423e06e655 100644 (file)
@@ -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);
   }
 }
-
index c53c704e52ae442fc2c4feca83e7b67f923efd2b..5263aaa835ddcd0c46fffa5866e35792e8dc72af 100644 (file)
@@ -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) {