jira-importer opened a new issue, #1126:
URL: https://github.com/apache/httpcomponents-core/issues/1126

   **[Peter 
Frank](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pfrank13)** 
opened 
**[HTTPCORE-613](https://issues.apache.org/jira/browse/HTTPCORE-613?redirect=false)**
 and commented
   
   Between HttpClient 4.4.x and 4.5.x setStaleConnectionCheckEnabled was 
deprecated in favor of setValidateAfterInactivity.  That's all fine, however, 
the implementation of setValidateAfterInactivity has no ability to check if a 
connection is stale all the time.  The closest one can get is 1 ms, and that's 
unfortunately not short enough in a test environment scenario when a test Http 
Server is being restarted between Tests to clear out state.
   
   This is a common issue on the internet for people that use something like 
Wiremock, the irony is troubleshooting the situation makes it go away (cause 
logging slows the tests).
   
   I would suggest making 0 a special value to "turn on" validation all the 
time.
   
   With HttpClient 5 removing the old staleConnectionCheckEnabled completely 
with a piece of what that feature actually did also being removed I fear it 
will leave me, and perhaps others, in a bit of a lurch.  Thanks!
   
   
   ---
   
   **Affects:** 4.4.12
   
   **Issue Links:**
   - [HTTPCLIENT-2028](https://issues.apache.org/jira/browse/HTTPCLIENT-2028) 
Restore staleConnectionCheckEnabled=true semantic behavior in 
validateAfterInactivity config
    (_**"is duplicated by"**_)
   - [HTTPCLIENT-2028](https://issues.apache.org/jira/browse/HTTPCLIENT-2028) 
Restore staleConnectionCheckEnabled=true semantic behavior in 
validateAfterInactivity config
    (_**"is depended upon by"**_)
   
   **Remote Links:**
   - [GitHub Pull Request `#158`
   ](https://github.com/apache/httpcomponents-core/pull/158)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to