Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC722D7D7 for ; Fri, 31 Aug 2012 16:38:08 +0000 (UTC) Received: (qmail 39887 invoked by uid 500); 31 Aug 2012 16:38:08 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 39857 invoked by uid 500); 31 Aug 2012 16:38:08 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 39847 invoked by uid 99); 31 Aug 2012 16:38:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 16:38:08 +0000 Date: Sat, 1 Sep 2012 03:38:08 +1100 (NCT) From: "Dennis Ju (JIRA)" To: dev@hc.apache.org Message-ID: <1290604067.23193.1346431088613.JavaMail.jiratomcat@arcas> In-Reply-To: <685422551.13123.1346265247762.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HTTPCLIENT-1228) HttpGet.abort() / HttpPost.abort() doesn't always abort immediately MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Ju updated HTTPCLIENT-1228: ---------------------------------- Attachment: (was: TestAbort.java) > HttpGet.abort() / HttpPost.abort() doesn't always abort immediately > ------------------------------------------------------------------- > > Key: HTTPCLIENT-1228 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1228 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.2.1 > Reporter: Dennis Ju > Priority: Minor > Attachments: TestAbort.java > > > HttpGet.abort() and HttpPost.abort() don't always abort immediately. It works most of the time, but occasionally the connection will block until it times out. I noticed this only happens when I explicitly set a timeout value (HttpConnectionParams.setConnectionTimeout()). > According to HttpComponent docs, "When an HTTP request is aborted its execution thread blocked in an I/O operation is guaranteed to unblock by throwing a InterruptedIOException". > The attached test code should demonstrate the issue. Every once in awhile, you'll get "Connect to slow.website.com:80 timed out". > I'm running Mac OS X 10.8 (Java version 1.6.0_29). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org