Just for visibility, I wanted to send along this JDK pull request: https://github.com/openjdk/jdk/pull/1968
If merged, it should fix the following issue, either for all cases or at least for most of them: https://issues.apache.org/jira/browse/HTTPCLIENT-2032