* Mon Apr 09 2018 Paul Wouters <pwouters@redhat.com> - 1.7.0-4

- Patch for prefetching after flushing cache
This commit is contained in:
Paul Wouters 2018-04-09 11:10:41 +02:00
parent bdec72db18
commit 06f08e4505
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- a/daemon/remote.c 2017-09-18 10:55:08.000000000 +0200
+++ b/daemon/remote.c 2018-04-09 10:55:46.719032250 +0200
@@ -1644,6 +1644,7 @@
struct reply_info* d = (struct reply_info*)e->data;
if(d->ttl > inf->expired) {
d->ttl = inf->expired;
+ d->prefetch_ttl = inf->expired;
inf->num_msgs++;
}
}

View File

@ -21,7 +21,7 @@
Summary: Validating, recursive, and caching DNS(SEC) resolver Summary: Validating, recursive, and caching DNS(SEC) resolver
Name: unbound Name: unbound
Version: 1.7.0 Version: 1.7.0
Release: 3%{?extra_version:.%{extra_version}}%{?dist} Release: 4%{?extra_version:.%{extra_version}}%{?dist}
License: BSD License: BSD
Url: https://www.unbound.net/ Url: https://www.unbound.net/
Source: https://www.unbound.net/downloads/%{name}-%{version}%{?extra_version}.tar.gz Source: https://www.unbound.net/downloads/%{name}-%{version}%{?extra_version}.tar.gz
@ -44,6 +44,7 @@ Source17: unbound-anchor.service
Patch1: unbound-1.7.0-aggrnsec.patch Patch1: unbound-1.7.0-aggrnsec.patch
Patch2: unbound-1.7.0-ref.patch Patch2: unbound-1.7.0-ref.patch
Patch3: unbound-1.7.0-prefetch.patch
Group: System Environment/Daemons Group: System Environment/Daemons
BuildRequires: flex, openssl-devel BuildRequires: flex, openssl-devel
@ -144,10 +145,12 @@ mv %{pkgname} %{pkgname}_python2
pushd %{pkgname}_python2 pushd %{pkgname}_python2
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
%else %else
pushd %{pkgname} pushd %{pkgname}
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p0
%endif # with_python %endif # with_python
# only for snapshots # only for snapshots
@ -442,6 +445,9 @@ popd
%attr(0644,root,root) %config %{_sysconfdir}/%{name}/root.key %attr(0644,root,root) %config %{_sysconfdir}/%{name}/root.key
%changelog %changelog
* Mon Apr 09 2018 Paul Wouters <pwouters@redhat.com> - 1.7.0-4
- Patch for prefetching after flushing cache
* Fri Apr 06 2018 Paul Wouters <pwouters@redhat.com> - 1.7.0-3 * Fri Apr 06 2018 Paul Wouters <pwouters@redhat.com> - 1.7.0-3
- Patch for referral with auth-zone: response - Patch for referral with auth-zone: response