Github user ajs6f commented on the issue:
https://github.com/apache/jena/pull/151
Sorry, @afs , I'm working on this now but not keeping this conversation up
to date. In fact, my most recent comment I now believe to have been wrong. See
[here](https://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d5e213)
and also that `HttpClientBuilder` is specifically marked as not thread-safe.
So I stayed with the original move (thread `HttpClient` through the call stack)
and got much more careful about closing resources when done with them. That
solved the problem you found. I _think_ that this PR is ready to go. I say I
_think_ because I've been looking at it a lot yesterday and today, and I'd like
to leave it alone for a day and look at it with fresh eyes. But
comments/criticism welcome immediately!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---