From 2fa815b4f31b0d678e77ed0f2c7abb236ee59716 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 4 Jan 2019 11:19:00 +0100 Subject: [PATCH] Failure to raise socket buf size is not fatal --- pdns/rec_channel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/rec_channel.cc b/pdns/rec_channel.cc index 70658ed454..ccfd766cb8 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)); } -- 2.47.2