]> granicus.if.org Git - pdns/commitdiff
Failure to raise socket buf size is not fatal
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Jan 2019 10:19:00 +0000 (11:19 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Jan 2019 10:19:00 +0000 (11:19 +0100)
pdns/rec_channel.cc

index 70658ed454cb1d42fe12b64b0bd286f25be5becf..ccfd766cb8925b02d65212062431c6bbdd6a8047 100644 (file)
@@ -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));
 }