]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix space calculation for tcp req buffer size.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 22 Jan 2019 08:27:49 +0000 (08:27 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 22 Jan 2019 08:27:49 +0000 (08:27 +0000)
git-svn-id: file:///svn/unbound/trunk@5047 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/listen_dnsport.c

index 3c859dd477880a4e8df9a5ce4e21303363a623b4..d90bda71ff8808a4e13033d4df7c6d6c1e05f1c7 100644 (file)
@@ -1,3 +1,6 @@
+22 January 2018: Wouter
+       - Fix space calculation for tcp req buffer size.
+
 21 January 2018: Wouter
        - Fix tcp idle timeout test, for difference in the tcp reply code.
        - Unit test for tcp request reorder and timeouts.
index c1d1c655e9c67740a41c6cc545e03f58dde0b04a..ef65aeda14c44a15499878e526668e9ccb44212a 100644 (file)
@@ -1821,7 +1821,7 @@ tcp_req_info_add_result(struct tcp_req_info* req, uint8_t* buf, size_t len)
                verbose(VERB_ALGO, "drop stream reply, no space left, in stream-wait-size");
                return 0;
        }
-       stream_wait_count += stream_wait_max;
+       stream_wait_count += space;
        lock_basic_unlock(&stream_wait_count_lock);
 
        /* find last element */