Sparql session is using the old way of passing parameters to the httpclient

Description

Sparql session is using the old api for http request parameters from apache httpclient. What is more troubling is that there is no way to add additional parameters to the requests method it's creating. There is a

in SparqlSession.execute. Note that parameters passed this way will override the global parameters that are set on the httpclient. Hence if someone is using HTTPRepository and sets the httpclient on it, it isn't clear that the RequestConfig object is never used. For example if we want to set "sane" timeouts:

we can't because the socket timeout is ignored. The current workaround is to set the params field to an empty BasicHttpParams through reflection.

Environment

None

Assignee

Jeen Broekstra

Reporter

Nikola Petrov

Labels

None

Affects versions

Priority

Major
Configure