From 819d97d26ee39098b1ae1b084401e9c7729c4527 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 12 Nov 2020 20:17:13 +0100 Subject: [PATCH] Improved wording of comments Co-authored-by: Peter van Dijk --- pdns/iputils.cc | 3 +-- pdns/pdns_recursor.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.47.2