From: Wouter Wijngaards Date: Fri, 25 Jan 2019 12:54:40 +0000 (+0000) Subject: - no lock when threads disabled in tcp request buffer count. X-Git-Tag: release-1.9.0rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce65cdde71a4d997483e6188818e42f62ad9acc1;p=thirdparty%2Funbound.git - no lock when threads disabled in tcp request buffer count. git-svn-id: file:///svn/unbound/trunk@5076 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 8255021ca..20871bf13 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,7 @@ - Fix that tcp for auth zone and outgoing does not remove and then gets the ssl read again applied to the deleted commpoint. - updated contrib/fastrpz.patch to cleanly diff. + - no lock when threads disabled in tcp request buffer count. 24 January 2018: Wouter - Newer aclocal and libtoolize used for generating configure scripts, diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index ef65aeda1..f86a83d96 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -76,8 +76,10 @@ /** number of simultaneous requests a client can have */ #define TCP_MAX_REQ_SIMULTANEOUS 32 +#ifndef THREADS_DISABLED /** lock on the counter of stream buffer memory */ static lock_basic_type stream_wait_count_lock; +#endif /** size (in bytes) of stream wait buffers */ static size_t stream_wait_count = 0; /** is the lock initialised for stream wait buffers */