]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/rec_channel.cc
dnsdist: Add HTTPStatusAction to return a specific HTTP response
[thirdparty/pdns.git] / 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));
 }