[ 
https://issues.apache.org/jira/browse/CAMEL-17705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496925#comment-17496925
 ] 

Claus Ibsen commented on CAMEL-17705:
-------------------------------------

Can you try as the comment says to use httpClientProperties to override and use 
your own timeout settings

> Camel Salesforce - Http Client timout is hardcoded
> --------------------------------------------------
>
>                 Key: CAMEL-17705
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17705
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-salesforce
>    Affects Versions: 3.14.0, 3.15.0
>            Reporter: Jawad Ahmad
>            Priority: Minor
>
> I am using Bulk V2 API to upload large files to Salesforce. I have noticed 
> that on creating the job from Producer it times out with Timeout exception. I 
> tried to change the timeout configuration but noticed its always gets set to 
> a hardcoded one.
> Class : SalesforceComponent
> {code:java}
> static SalesforceHttpClient createHttpClient(
>             Object source, final SslContextFactory sslContextFactory, final 
> CamelContext context, int workerPoolSize,
>             int workerPoolMaxSize) {
>         SecurityUtils.adaptToIBMCipherNames(sslContextFactory);
>         final SalesforceHttpClient httpClient = new SalesforceHttpClient(
>                 context, 
> context.getExecutorServiceManager().newThreadPool(source, 
> "SalesforceHttpClient", workerPoolSize,
>                         workerPoolMaxSize),
>                 sslContextFactory);
>         // default settings, use httpClientProperties to set other
>         // properties
>         httpClient.setConnectTimeout(CONNECTION_TIMEOUT);
>         httpClient.setIdleTimeout(IDLE_TIMEOUT);
>         return httpClient;
>     }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to