summaryrefslogtreecommitdiff
path: root/net/unbound
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2019-12-03 08:08:58 +0000
committerhe <he@pkgsrc.org>2019-12-03 08:08:58 +0000
commitb685d47c7e37da9715650fbda1347ffee8ed5146 (patch)
tree9636feb468be1e2503954fa585dbfc973bed833a /net/unbound
parent275c50625685f99b72e99dd2df77190e819b48f4 (diff)
downloadpkgsrc-b685d47c7e37da9715650fbda1347ffee8ed5146.tar.gz
Apply a fix from upstream:
https://github.com/NLnetLabs/unbound/pull/122 which fixes https://github.com/NLnetLabs/unbound/issues/125 Briefly: TCP socket timeouts would effectively be disabled after the exchange of the initial DNS query/response. Bump PKGREVISION.
Diffstat (limited to 'net/unbound')
-rw-r--r--net/unbound/Makefile3
-rw-r--r--net/unbound/distinfo3
-rw-r--r--net/unbound/patches/patch-util_netevent.c21
3 files changed, 25 insertions, 2 deletions
diff --git a/net/unbound/Makefile b/net/unbound/Makefile
index 51af1a1cea2..b856d25c0f8 100644
--- a/net/unbound/Makefile
+++ b/net/unbound/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.72 2019/11/19 10:10:44 he Exp $
+# $NetBSD: Makefile,v 1.73 2019/12/03 08:08:58 he Exp $
DISTNAME= unbound-1.9.5
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.nlnetlabs.nl/downloads/unbound/
diff --git a/net/unbound/distinfo b/net/unbound/distinfo
index a27b8358cf3..5e6aadf6532 100644
--- a/net/unbound/distinfo
+++ b/net/unbound/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.54 2019/11/19 10:10:44 he Exp $
+$NetBSD: distinfo,v 1.55 2019/12/03 08:08:58 he Exp $
SHA1 (unbound-1.9.5.tar.gz) = e5a417fe46e5f2911b91e5ec6bbedc2ed14d9d0b
RMD160 (unbound-1.9.5.tar.gz) = a49319ccc743709687792a57f1796acfa22e791e
SHA512 (unbound-1.9.5.tar.gz) = 0b198b49165b25c93899ca41fead67c479e5b6fd255f7e2af6930f4b9898c73d8a72caf376fce9a2a33199d0764db58388371c3fdbd442999ddfdb0b8b5394ea
Size (unbound-1.9.5.tar.gz) = 5686689 bytes
SHA1 (patch-configure) = eabd0c478e92ebe37adf143849389e0e792dc77f
+SHA1 (patch-util_netevent.c) = 3fba509f23d74fce18e45ffe1fcdb97ad609be46
diff --git a/net/unbound/patches/patch-util_netevent.c b/net/unbound/patches/patch-util_netevent.c
new file mode 100644
index 00000000000..87f2f683955
--- /dev/null
+++ b/net/unbound/patches/patch-util_netevent.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-util_netevent.c,v 1.1 2019/12/03 08:08:58 he Exp $
+
+Apply fix from
+ https://github.com/NLnetLabs/unbound/pull/122
+which fixes
+ https://github.com/NLnetLabs/unbound/issues/125
+
+Briefly: TCP socket timeouts would effectively be disabled after
+the exchange of the initial DNS query/response.
+
+--- util/netevent.c.orig 2019-11-19 06:51:50.000000000 +0000
++++ util/netevent.c
+@@ -1001,7 +1001,7 @@ tcp_callback_writer(struct comm_point* c
+ tcp_req_info_handle_writedone(c->tcp_req_info);
+ } else {
+ comm_point_stop_listening(c);
+- comm_point_start_listening(c, -1, -1);
++ comm_point_start_listening(c, -1, c->tcp_timeout_msec);
+ }
+ }
+