- no lock when threads disabled in tcp request buffer count.

git-svn-id: file:///svn/unbound/trunk@5076 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2019-01-25 12:54:40 +00:00
parent b005fcd87b
commit ce65cdde71
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,7 @@
- Fix that tcp for auth zone and outgoing does not remove and - Fix that tcp for auth zone and outgoing does not remove and
then gets the ssl read again applied to the deleted commpoint. then gets the ssl read again applied to the deleted commpoint.
- updated contrib/fastrpz.patch to cleanly diff. - updated contrib/fastrpz.patch to cleanly diff.
- no lock when threads disabled in tcp request buffer count.
24 January 2018: Wouter 24 January 2018: Wouter
- Newer aclocal and libtoolize used for generating configure scripts, - Newer aclocal and libtoolize used for generating configure scripts,

View file

@ -76,8 +76,10 @@
/** number of simultaneous requests a client can have */ /** number of simultaneous requests a client can have */
#define TCP_MAX_REQ_SIMULTANEOUS 32 #define TCP_MAX_REQ_SIMULTANEOUS 32
#ifndef THREADS_DISABLED
/** lock on the counter of stream buffer memory */ /** lock on the counter of stream buffer memory */
static lock_basic_type stream_wait_count_lock; static lock_basic_type stream_wait_count_lock;
#endif
/** size (in bytes) of stream wait buffers */ /** size (in bytes) of stream wait buffers */
static size_t stream_wait_count = 0; static size_t stream_wait_count = 0;
/** is the lock initialised for stream wait buffers */ /** is the lock initialised for stream wait buffers */