From d889832892190ad8e5bc9ce2aee6be9117e377e1 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 24 Jul 2015 07:02:14 +0000 Subject: [PATCH] - Fix #690: Reload fails when so-reuseport is yes after changing git-svn-id: file:///svn/unbound/trunk@3456 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/daemon.c | 2 +- doc/Changelog | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/daemon.c b/daemon/daemon.c index 0cd37ae82..386860624 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -464,7 +464,7 @@ thread_start(void* arg) #endif #ifdef SO_REUSEPORT if(worker->daemon->cfg->so_reuseport) - port_num = worker->thread_num; + port_num = worker->thread_num % worker->daemon->num_ports; else port_num = 0; #endif diff --git a/doc/Changelog b/doc/Changelog index 0bc42f562..9fc401af8 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +24 July 2015: Wouter + - Fix #690: Reload fails when so-reuseport is yes after changing + num-threads. + 21 July 2015: Wouter - Fix configure to detect SSL_CTX_set_ecdh_auto. - iana portlist update. -- 2.47.2