I modified the parameter maxRequestsCount to 5 and tested it, but found that a connection was closed after processing 6 requests.
So I tracked the code and found that after processing the fifth request, this condition keepAliveContext.requestsProcessed <= maxRequestCountis still true until the sixth request.
I modified the parameter maxRequestsCount to 5 and tested it, but found that a connection was closed after processing 6 requests. So I tracked the code and found that after processing the fifth request, this condition keepAliveContext.requestsProcessed <= maxRequestCountis still true until the sixth request.