]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- no lock when threads disabled in tcp request buffer count.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Jan 2019 12:54:40 +0000 (12:54 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Jan 2019 12:54:40 +0000 (12:54 +0000)
git-svn-id: file:///svn/unbound/trunk@5076 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/listen_dnsport.c

index 8255021ca0440622b68a9ee6357a62def83d9b18..20871bf138c79d2d27a9191a9924794e318c00cf 100644 (file)
@@ -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,
index ef65aeda14c44a15499878e526668e9ccb44212a..f86a83d967364ab04377cd7d7331d76aaa857787 100644 (file)
 /** 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 */