eclipse-ee4j / grizzly

Grizzly
https://eclipse-ee4j.github.io/grizzly
Other
147 stars 69 forks source link

Fix max requests count not accurate #2068

Closed Linary closed 5 years ago

Linary commented 5 years ago

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.

Linary commented 5 years ago

Anyone review?