Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
4.4.6
-
None
Description
change the code in org.apache.http.impl.nio.reactor.BaseIOReactor:
if( (currentTime - this.lastTimeoutCheck) >= this.timeoutCheckInterval) ->
if( (currentTime - this.lastTimeoutCheck) >= this.timeoutCheckInterval + 2)
because :the code will run for a time and network tranport expend the time too. So currentTime - this.lastTimeoutCheck should be
larger than selectTimeout in order to check timeout. In this case , This will make the code more efficiency.