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 */