hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Apache httpclient read timeout
Date Wed, 03 Feb 2010 10:36:32 GMT
On Mon, 2010-02-01 at 17:23 -0800, Learn Learn wrote:
> Hi,
> We have an application on Servicemix that uses ApacheHTTPCLient within it to
> handle http based communication. In our flows, we have defined http
> endpoints with a socket timeout of 30 seconds and this usually works except
> for the case where we establish a connection with the supplier and the
> response from the supplier is very very slow. We have seen that such
> responses could come after 120 seconds eventhough the socket timeout is set
> to 30 seconds.


This is perfectly normal. As long as the connection keeps on sending
more packets every 30 seconds, the socket timeout will not fire.

>  Is there an option to set a different timeout like a read
> timeout to handle such situations? Any help will be greatly appreciated.

There is no such parameter. It is up to the consumer of the response
InputStreram to control the timeout value on that connection.


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message