You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by rnavarrocantu <rn...@gmail.com> on 2013/05/20 22:36:45 UTC
Re: HttpClient with PoolingClientConnectionManager throws read time
out
Guys, I'm having this same issue, but it's not clear to me if there was a
resolution, and what was the settings required to avoid hitting this
timeout. Thanks
--
View this message in context: http://httpcomponents.10934.n7.nabble.com/HttpClient-with-PoolingClientConnectionManager-throws-read-time-out-tp18437p20125.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: HttpClient with PoolingClientConnectionManager throws read time out
Posted by Chun Tat David Chu <be...@gmail.com>.
Did you set the CoreConnectionPNames.SO_TIMEOUT somewhere in your code?
According to the httpclient-tutorial.pdf, if you didn't set the socket
timeout, your read operation should never be timed out. Here's the copied
and pasted section from the PDF.
CoreConnectionPNames.SO_TIMEOUT='http.socket.timeout': defines the socket
timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for
data or, put differently, a maximum period inactivity between two
consecutive data packets). A timeout value of zero is interpreted as an
infinite timeout. This parameter expects a value of type java.lang.Integer.
If this parameter is not set, read operations will not time out (infinite
timeout).
Good luck!
dc
On Mon, May 20, 2013 at 4:36 PM, rnavarrocantu <rn...@gmail.com>wrote:
> Guys, I'm having this same issue, but it's not clear to me if there was a
> resolution, and what was the settings required to avoid hitting this
> timeout. Thanks
>
>
>
> --
> View this message in context:
> http://httpcomponents.10934.n7.nabble.com/HttpClient-with-PoolingClientConnectionManager-throws-read-time-out-tp18437p20125.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>