]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that the out of order TCP processing does not limit the
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Oct 2020 15:26:58 +0000 (17:26 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Oct 2020 15:26:58 +0000 (17:26 +0200)
  number of outstanding queries over a connection.

doc/Changelog
services/listen_dnsport.c

index c97b24ec098307315f5415ee87cd6aeda2d1a5dc..3f291bed662cc906eede3c968f99f7638b29f558 100644 (file)
@@ -1,3 +1,7 @@
+16 October 2020: Wouter
+       - Fix that the out of order TCP processing does not limit the
+         number of outstanding queries over a connection.
+
 15 October 2020: George
        - Fix that if there are reply callbacks for the given rcode, those
          are called per reply and a new message created if that was modified
index 1cdb32a9c7975708b691120711c436c608b02a5e..ad73fad016d13129a74cc40c3bfa3a92e086ef71 100644 (file)
@@ -82,7 +82,7 @@
 #define TCP_BACKLOG 256 
 
 /** 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 */
@@ -1804,7 +1804,7 @@ tcp_req_info_setup_listen(struct tcp_req_info* req)
 
        if(!req->cp->tcp_is_reading)
                wr = 1;
-       if(req->num_open_req + req->num_done_req < TCP_MAX_REQ_SIMULTANEOUS &&
+       if(/*req->num_open_req + req->num_done_req < TCP_MAX_REQ_SIMULTANEOUS &&*/
                !req->read_is_closed)
                rd = 1;