From: W.C.A. Wijngaards Date: Fri, 16 Oct 2020 15:26:58 +0000 (+0200) Subject: - Fix that the out of order TCP processing does not limit the X-Git-Tag: release-1.13.0rc1~31^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f81d0ac0474cc8904e1240a512b935c8e466f81b;p=thirdparty%2Funbound.git - Fix that the out of order TCP processing does not limit the number of outstanding queries over a connection. --- diff --git a/doc/Changelog b/doc/Changelog index c97b24ec0..3f291bed6 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 1cdb32a9c..ad73fad01 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -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;