Return-Path: Delivered-To: apmail-jakarta-httpclient-dev-archive@www.apache.org Received: (qmail 25794 invoked from network); 1 Nov 2004 03:48:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Nov 2004 03:48:26 -0000 Received: (qmail 6137 invoked by uid 500); 1 Nov 2004 03:48:24 -0000 Delivered-To: apmail-jakarta-httpclient-dev-archive@jakarta.apache.org Received: (qmail 6049 invoked by uid 500); 1 Nov 2004 03:48:23 -0000 Mailing-List: contact httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "HttpClient Project" Reply-To: "HttpClient Project" Delivered-To: mailing list httpclient-dev@jakarta.apache.org Received: (qmail 6031 invoked by uid 99); 1 Nov 2004 03:48:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [140.142.32.135] (HELO mxout5.cac.washington.edu) (140.142.32.135) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 31 Oct 2004 19:48:18 -0800 Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.1+UW04.08/8.13.1+UW04.09) with ESMTP id iA13mGvW028176 for ; Sun, 31 Oct 2004 19:48:16 -0800 Received: from [10.0.1.2] (pool-70-19-177-91.bos.east.verizon.net [70.19.177.91]) (authenticated bits=0) by smtp.washington.edu (8.13.1+UW04.08/8.13.1+UW04.08) with ESMTP id iA13mF9g028463 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 31 Oct 2004 19:48:16 -0800 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <015001c4bfbc$915b4090$5064a8c0@paulwee> References: <015001c4bfbc$915b4090$5064a8c0@paulwee> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Michael Becke Subject: Re: Need explanation for this error Date: Sun, 31 Oct 2004 22:48:14 -0500 To: "HttpClient Project" X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Paul, Yep, looks like the server is not sending the response quickly enough. Setting the timeout to a higher value should fix the problem. A higher timeout could certainly decrease performance. I guess it depends what is more important for your application, consistent method execution time and higher throughput, or better method reliability and potentially lower throughput. Mike On Oct 31, 2004, at 9:43 PM, paul wrote: > Dear all, > > got this error on my app : > ======================================================================= > WARNING: Recoverable exception caught but > MethodRetryHandler.retryMethod() returned false, rethrowing exception > org.apache.commons.httpclient.HttpRecoverableException: > java.net.SocketTimeoutException: Read timed out > at > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBas > e.java:1965) > at > org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodB > ase.java:2659) > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.jav > a:1093) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: > 675) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: > 529) > ======================================================================= > > Currently using httpclient version 2.0, is this error caused by > waiting too long for the reply? Can it be overcome by setting a higher > value for TIMEOUT variable like below... > > httpClient = new HttpClient(connMgr); > httpClient.setTimeout(TIMEOUT); > > What the implication for setting a too high value to TIMEOUT? Will it > caused too many waiting threads? > > Thx in advance. > > Regards, > Paul > > > CONFIDENTIAL NOTE: The information contained in this email is intended > only > for the use of the individual or entity named above and may contain > information that is privileged, confidential and exempt from > disclosure under > applicable law. If the reader of this message is not the intended > recipient, > you are hereby notified that any dissemination, distribution or > copying of > this communication is strictly prohibited. If you have received this > message > in error, please immediately notify the sender and delete the mail. > Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org