]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Clean the fix for out of order TCP processing limits on number
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 19 Oct 2020 11:39:02 +0000 (13:39 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 19 Oct 2020 11:39:02 +0000 (13:39 +0200)
  of queries.  It was tested to work.

doc/Changelog
services/listen_dnsport.c

index 3f1c70a8d964028ae5353d8eefb769f8e1833ceb..89c26958fa510d7360f6eb955ac63fecaf5f0559 100644 (file)
@@ -14,6 +14,8 @@
        - Log ip address when http session recv fails, eg. due to tls fail.
        - Fix to set the tcp handler event toggle flag back to default when
          the handler structure is reused.
+       - Clean the fix for out of order TCP processing limits on number
+         of queries.  It was tested to work.
 
 16 October 2020: Wouter
        - Fix that the out of order TCP processing does not limit the
index d4f912db5220f95d787989fceb6a24ab7cef2b5e..e506eeb31c8039ed0228f0af850417dee20e5102 100644 (file)
@@ -81,9 +81,6 @@
 /** number of queued TCP connections for listen() */
 #define TCP_BACKLOG 256 
 
-/** 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;
@@ -1809,8 +1806,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 &&*/
-               !req->read_is_closed)
+       if(!req->read_is_closed)
                rd = 1;
        
        if(wr) {