Edit timeout in HttpClient (4.5)
<p>I need to be able to modify the timeout set in my CloseAbleHttpClient. Here's how I set the different timeouts: </p>

<pre><code>RequestConfig config = RequestConfig.copy(RequestConfig.DEFAULT)
            .setConnectTimeout(timeout)
            .setSocketTimeout(timeout)
            .setConnectionRequestTimeout(managerTimeout)
            .build();

    httpClient = HttpClients.custom()
            .setConnectionManager(connectionManager)
            .setDefaultRequestConfig(config)
            .build();
</code></pre>

<p>Do I have to create a new RequestConfig object, and build the HttpClients.custom() again to achieve this? I have tried this, and the problem arises in that I need my CloseableHttpClient to be final. If I set the timeout 2 times, this isn't possible. I would appreciate any input on how to best modify the timout properties! </p>