Hi All,
I am trying to set a timeout for an HTTP connection. Based on the
documentation, we need to pass a query parameter "soTimeout=<timeout value>"
to activate the timeout.

I am able to get this working with the following route definition

from("direct:start")
  .to("http://test-timeout-url?httpClient.soTimeout=5000";)

However, I need to dynamically create the URL so I am trying the following:

from("direct:start")
  .setHeader(Exchange.HTTP_URI,
simple("http://test-timeout-url?httpClient.soTimeout=5000";))


The above code doesn't enforce the timeout for some reason. Is there any
other way to implement the timeout when we need to dynamically build a URL?

Thanks for your help.


--
View this message in context: 
http://camel.465427.n5.nabble.com/setting-http-soTimeout-via-setHeader-is-not-working-tp5716218.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to