Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2019 10:45:39 +0000 (UTC)
From:      Kirill Ponomarev <krion@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493360 - head/dns/powerdns-recursor/files
Message-ID:  <201902191045.x1JAjdu8073195@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: krion
Date: Tue Feb 19 10:45:39 2019
New Revision: 493360
URL: https://svnweb.freebsd.org/changeset/ports/493360

Log:
  Commit forgotten patch.
  
  Submitted by:	maintainer

Added:
  head/dns/powerdns-recursor/files/patch-rec__channel.cc   (contents, props changed)

Added: head/dns/powerdns-recursor/files/patch-rec__channel.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/powerdns-recursor/files/patch-rec__channel.cc	Tue Feb 19 10:45:39 2019	(r493360)
@@ -0,0 +1,27 @@
+$OpenBSD: patch-rec_channel_cc,v 1.1.1.1 2018/12/29 14:29:08 sthen Exp $
+
+Index: rec_channel.cc
+--- rec_channel.cc.orig	2019-01-31 19:43:44 UTC
++++ rec_channel.cc
+@@ -54,6 +54,10 @@ int RecursorControlChannel::listen(const string& fname
+   if(bind(d_fd, (sockaddr*)&d_local,sizeof(d_local))<0) 
+     throw PDNSException("Unable to bind to controlsocket '"+fname+"': "+stringerror());
+ 
++  int bufsz = 60*1024;
++  setsockopt(d_fd, SOL_SOCKET, SO_SNDBUF, &bufsz, sizeof(bufsz));
++  bufsz = 64*1024;
++  setsockopt(d_fd, SOL_SOCKET, SO_RCVBUF, &bufsz, sizeof(bufsz));
+   return d_fd;
+ }
+ 
+@@ -99,6 +103,10 @@ void RecursorControlChannel::connect(const string& pat
+ 	unlink(d_local.sun_path);
+       throw PDNSException("Unable to connect to remote '"+string(remote.sun_path)+"': "+stringerror());
+     }
++    int bufsz = 60*1024;
++    setsockopt(d_fd, SOL_SOCKET, SO_SNDBUF, &bufsz, sizeof(bufsz));
++    bufsz = 64*1024;
++    setsockopt(d_fd, SOL_SOCKET, SO_RCVBUF, &bufsz, sizeof(bufsz));
+ 
+   } catch (...) {
+     close(d_fd);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902191045.x1JAjdu8073195>