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.
Vijay, 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. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org