Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 5516 invoked from network); 24 Aug 2003 20:11:18 -0000 Received: from smtp-out3.iol.cz (194.228.2.91) by daedalus.apache.org with SMTP; 24 Aug 2003 20:11:18 -0000 Received: from fw.shark (gprs10-232.eurotel.cz [160.218.195.232]) by smtp-out3.iol.cz (Internet on Line ESMP server) with ESMTP id 65F6833FBB for ; Sun, 24 Aug 2003 22:11:13 +0200 (CEST) Received: from centrum.cz (0-3.shark [192.168.0.3]) by fw.shark (8.12.8/8.12.5) with ESMTP id h7OKEANB018061 for ; Sun, 24 Aug 2003 22:14:15 +0200 Message-ID: <3F491A55.8040306@centrum.cz> Date: Sun, 24 Aug 2003 22:04:37 +0200 From: Leo Galambos User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Commons HttpClient Project Subject: Re: strange behavior of 2.0-rc1 References: In-Reply-To: X-Enigmail-Version: 0.76.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Michael Becke wrote: > Also, in you example Network.java class I noticed the following lines: > > while (r.status == -1 && attempt++ < RETRIES) { > try { > r.status = client.executeMethod(method); > r.msg = null; > } catch (Throwable x) { > method.recycle(); > r.msg = url + ": " + x.getMessage(); > if (logger.isLoggable(Level.FINE)) { > logger.log(Level.FINE, attempt + " of " + url, > x); > } > } > } Hi Mike, what do you suggest? Your tutorial does not cover this - a) you use System.exit(-1) which would not be a good solution in my case ;-); or b) you do nothing, which does not work, because "executeMethod" would throw some exception again (I tried it with a previous HC version). Should I use "releaseConnection"? Will it work correctly? BTW: I will try "httpConnectionFactoryTimeout" as soon as we are sure, that "recycle" is not the problematic point which causes the issue. Thank you Leo