From: Otto Moerbeek Date: Fri, 4 Jan 2019 10:19:00 +0000 (+0100) Subject: Failure to raise socket buf size is not fatal X-Git-Tag: rec-4.2.0-alpha1~65^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fa815b4f31b0d678e77ed0f2c7abb236ee59716;p=pdns Failure to raise socket buf size is not fatal --- diff --git a/pdns/rec_channel.cc b/pdns/rec_channel.cc index 70658ed45..ccfd766cb 100644 --- a/pdns/rec_channel.cc +++ b/pdns/rec_channel.cc @@ -42,9 +42,9 @@ static void setSocketBuffer(int fd, int optname, uint32_t size) if (psize > size) return; - - if (setsockopt(fd, SOL_SOCKET, optname, (const void*)&size, sizeof(size)) < 0 ) - throw PDNSException("Unable to raise socket buffer size: "+stringerror()); + + // failure to raise is not fatal + setsockopt(fd, SOL_SOCKET, optname, (const void*)&size, sizeof(size)); }