Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88B66D1C5 for ; Mon, 20 May 2013 22:19:22 +0000 (UTC) Received: (qmail 66180 invoked by uid 500); 20 May 2013 22:19:22 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 66145 invoked by uid 500); 20 May 2013 22:19:22 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 66137 invoked by uid 99); 20 May 2013 22:19:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 22:19:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of beyonddc.storage@gmail.com designates 74.125.82.170 as permitted sender) Received: from [74.125.82.170] (HELO mail-we0-f170.google.com) (74.125.82.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 22:19:18 +0000 Received: by mail-we0-f170.google.com with SMTP id u54so6021920wes.1 for ; Mon, 20 May 2013 15:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=tVJNlP2hdoMUs2W/lOW9Hw+vBxPl5XYsHIL7xU1Unv8=; b=n9rVdL901K1CYdh344akFRsGVK6hN0dsyNaNECMMA6lQEX9eZmi0pNisJ/6Kzd6tjM aXzODvKEZDhJTdKGMYOFLu6iDnoykQ4fhrhvihKuYt+pVb+QXAQKqv4dkLPn5y6VG0HB bmxDFriNjXhLaXEgft9Laj1z/jtaA7HB0NYeuKFdVjutS3wIH+nBIGy6SzOwtX8r85cb Z82Q1l0TWXTd6zh7jq6QMhJz4h4sn8YS1MUbn0zGXgC74ieV3XhQQe45Ayc0CEBWKygh IOUL/sMgRp6BWZMlDgpF87HXTPVbXMNseKocjwDS+UI+ddFlGu8Q8eglMtEmqUPKyk4B +94A== MIME-Version: 1.0 X-Received: by 10.180.105.161 with SMTP id gn1mr18150643wib.5.1369088336897; Mon, 20 May 2013 15:18:56 -0700 (PDT) Received: by 10.217.118.7 with HTTP; Mon, 20 May 2013 15:18:56 -0700 (PDT) In-Reply-To: <1369082205259-20125.post@n7.nabble.com> References: <1350414715.2097.13.camel@ubuntu> <001e01cdac70$b4e84d10$1eb8e730$@com> <1350483082.28939.2.camel@ubuntu> <1369082205259-20125.post@n7.nabble.com> Date: Mon, 20 May 2013 18:18:56 -0400 Message-ID: Subject: Re: HttpClient with PoolingClientConnectionManager throws read time out From: Chun Tat David Chu To: HttpClient User Discussion Content-Type: multipart/alternative; boundary=f46d041826fcfcaeae04dd2db76e X-Virus-Checked: Checked by ClamAV on apache.org --f46d041826fcfcaeae04dd2db76e Content-Type: text/plain; charset=ISO-8859-1 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 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 > > --f46d041826fcfcaeae04dd2db76e--