How to set a higher timeout for all StdHttpClient objects? Is there a way to set it for org.apache.http.client.HttpClient

18 views
Skip to first unread message

Alexandre hadjinlian guerra

unread,
Nov 8, 2017, 3:55:13 PM11/8/17
to ektorp-discuss
Hi

I've been in charge for a given java app qhich does use this library and is currently dumping this error message in the logs. Im not that versed in Java and i dont pretend to recompile the app just to chenge this default behavior for a given class/objet
Is there any XML or option while starting the VM which i could set the default for a longer timeout for both session and connectio? Thanks !!

From the docs

StdHttpClient just wraps Apache HttpClient and exposes the following configuration properties:

Table 3.1. org.ektorp.http.StdHttpClient Config Parameters

Name Default Value
username  
password  
maxConnections 20
connectionTimeout 1000 (ms)
socketTimeout 10000 (ms)
enableSSL false (will automatically be enabled if url begins with https)
sslSocketFactory The JVM's ssl socket factory will be used by default
relaxedSSLSettings false
caching true
maxCacheEntries 1000
maxObjectSizeBytes 8192
useExpectContinue true
cleanupIdleConnections true

Reply all
Reply to author
Forward
0 new messages