Hi

Its working as designed.

The httpClient.xxx are options specific to the http client you want to
use for the endpoint when its created.

The Exchange.HTTP_URI is only for the uri to call the remote http
server. And not to configure httpClient itself by camel etc.




On Tue, Jan 21, 2014 at 5:08 PM, toomanyedwards
<toomanyedwa...@gmail.com> wrote:
> Hi all,
>   We are trying to set the timeout for http client connections.  The http
> component docs (http://camel.apache.org/http.html) indicate that we should
> be able to set this as a URI param (eg. -
> http://foo.com?httpClient.soTimeout=5000), BUT this doesn't work if setting
> the URI via the Exchange.HTTP_URI header.  The timeout is completely
> ignored.  There's nothing in the http component docs that I have found that
> indicate when specifying the URI via the Exchange.HTTP_URI header that the
> timeout settings will be ignored.  I found a message thread
> (http://camel.465427.n5.nabble.com/setting-http-soTimeout-via-setHeader-is-not-working-td5716218.html)
> indicating that you have to use recipient list for timeouts to be respected.
> This is definitely counter intuitive and if someone develops a route using
> the Exchange.HTTP* headers and then needs to specify a time out they may
> need to change in their route logic since the configuration of the recipient
> list component is different from the http component.
>
> Is having to use the recipient list component to support client http
> timeouts an explicit requirements decision or because of a technical
> limitation(s) of the http component?  Is there a way to use the http
> component and specify the URI vi the Exchange.HTTP_URI header or is using
> recipient list the only way to do it?
>
> Thanks for any feedback.  We have been very happy with using camel in our
> project and this is the first thing we've come across that I'd characterize
> as a major bug, but hopefully I'm mistaken here.  Thanks again!
>
> -e
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/soTimeout-ignored-by-camel-http-component-tp5746289.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to