Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.3.5
-
android
Description
after initializing builder en building client, the timeout settings are not used for the request execution. In ClosableHttpClient.doExecute(), an on the fly request config is used.
my code:
builder = HttpClientBuilder.create();
int timeout = 30000;
defaultRequestConfig = RequestConfig.custom()
.setSocketTimeout(timeout)
.setConnectTimeout(timeout)
.build();
builder.setDefaultRequestConfig(defaultRequestConfig);
List<Header> headers = new ArrayList<Header>();
headers.add(new BasicHeader("Accept", "application/json"));
builder.setDefaultHeaders(headers);
builder.useSystemProperties();
client = builder.build();
client.execute(request)
timeout settings are never used!
Attachments
Issue Links
- is duplicated by
-
HTTPCLIENT-1593 CloseableHttpClient default request config not respected
- Closed