- Clean the fix for out of order TCP processing limits on number

of queries.  It was tested to work.
This commit is contained in:
W.C.A. Wijngaards 2020-10-19 13:39:02 +02:00
parent 531ce9e85c
commit 61922ce9da
2 changed files with 3 additions and 5 deletions

View file

@ -14,6 +14,8 @@
- Log ip address when http session recv fails, eg. due to tls fail. - 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 - Fix to set the tcp handler event toggle flag back to default when
the handler structure is reused. 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 16 October 2020: Wouter
- Fix that the out of order TCP processing does not limit the - Fix that the out of order TCP processing does not limit the

View file

@ -81,9 +81,6 @@
/** number of queued TCP connections for listen() */ /** number of queued TCP connections for listen() */
#define TCP_BACKLOG 256 #define TCP_BACKLOG 256
/** number of simultaneous requests a client can have */
/* #define TCP_MAX_REQ_SIMULTANEOUS 32 */
#ifndef THREADS_DISABLED #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;
@ -1809,8 +1806,7 @@ tcp_req_info_setup_listen(struct tcp_req_info* req)
if(!req->cp->tcp_is_reading) if(!req->cp->tcp_is_reading)
wr = 1; wr = 1;
if(/*req->num_open_req + req->num_done_req < TCP_MAX_REQ_SIMULTANEOUS &&*/ if(!req->read_is_closed)
!req->read_is_closed)
rd = 1; rd = 1;
if(wr) { if(wr) {