apache httpclient 4.3 not timing out
问题 I am having trouble getting the Apache HttpClient (4.3) post request to timeout using the following code: RequestConfig requestConfig = RequestConfig.custom().setConnectionRequestTimeout(4000).setConnectTimeout(4000) .setSocketTimeout(4000).build(); CloseableHttpClient client = HttpClients.custom().setSslcontext(sslContext) .setHostnameVerifier(SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER) .setDefaultRequestConfig(requestConfig).build(); HttpPost post = new HttpPost("https:/