Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 50361 invoked from network); 2 Mar 2005 22:13:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 22:13:38 -0000 Received: (qmail 6150 invoked by uid 500); 2 Mar 2005 22:13:33 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 6115 invoked by uid 500); 2 Mar 2005 22:13:33 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 6102 invoked by uid 99); 2 Mar 2005 22:13:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of heabdogg@gmail.com designates 64.233.170.200 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.200) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 14:13:33 -0800 Received: by rproxy.gmail.com with SMTP id j1so236479rnf for ; Wed, 02 Mar 2005 14:13:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=n2jksw4Wg9Dcex+6I2XZtCAFt+DIq5G+az+4WOCjxKLJ0VoykON14OoEa3FQUiFkrob3v7o0Km5VqQ1kiPYPw+puqL+CATnhWJS5782Cj/Ibbn1vIp8irh20Zp8hXXa1zRiq14xX5a2PHfrhyw3sZbac06K784pC+PpHuX+OX+A= Received: by 10.38.15.38 with SMTP id 38mr135363rno; Wed, 02 Mar 2005 14:13:30 -0800 (PST) Received: by 10.38.82.15 with HTTP; Wed, 2 Mar 2005 14:13:30 -0800 (PST) Message-ID: Date: Wed, 2 Mar 2005 17:13:30 -0500 From: Scott Heaberlin Reply-To: Scott Heaberlin To: Jakarta Commons Users List Subject: Re: Commons HttpClient: HttpClient#setConnectionTimeout In-Reply-To: <1109799945.7782.6.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <421CE076.7010307@noaa.gov> <421D333B.9010107@bancbridge.com> <421D7C43.7000505@indra.es> <292e734005022415236cd1194c@mail.gmail.com> <1109799945.7782.6.camel@localhost.localdomain> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You are exactly right. eggOnMe = true Further investigation showed that I was not setting the read (so) timeout as I thought. Then when I actually *was* setting soTimeout, I found a bug in our own application that was ignoring the timeout value from my own configuration - so instead of my expected "quick" timeout, httpclient was being set to a normal, much longer timeout. I simply wasn't waiting long enough for our default timeout value to expire. Consequently, I opted to do what one of the previous messages in this thread suggested - utilize HttpMethod::abort() to achieve an absolute timeout, as our business requirements do not differentiate from connection timeout or remote read timeout. For this I have now utilized a mechanism very similar to httpclient's own TimeoutController class combined with HttpMethod::abort(). This approach works wonderfully - ending the http operation regardless of the state of the connection or read operations. Thanks a bunch - and sorry for the confusion. -Scott --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org