Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 76444 invoked from network); 19 Aug 2010 19:40:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 19:40:38 -0000 Received: (qmail 69244 invoked by uid 500); 19 Aug 2010 19:40:38 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 69178 invoked by uid 500); 19 Aug 2010 19:40:37 -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 69170 invoked by uid 99); 19 Aug 2010 19:40:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 19:40:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 19:40:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7JJeG5b006889 for ; Thu, 19 Aug 2010 19:40:16 GMT Message-ID: <30698426.452631282246816529.JavaMail.jira@thor> Date: Thu, 19 Aug 2010 15:40:16 -0400 (EDT) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Subject: [jira] Resolved: (HTTPCLIENT-980) CachingHttpClient returns a 503 response when the backend HttpClient produces an IOException In-Reply-To: <3803548.448141282231397813.JavaMail.jira@thor> 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-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-980. ------------------------------------------ Fix Version/s: 4.1 Alpha3 Resolution: Fixed Committed. Oleg > CachingHttpClient returns a 503 response when the backend HttpClient produces an IOException > -------------------------------------------------------------------------------------------- > > Key: HTTPCLIENT-980 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-980 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: Cache > Affects Versions: 4.1 Alpha2 > Reporter: Vianney Carel > Priority: Minor > Fix For: 4.1 Alpha3 > > Attachments: no-503-on-ioexception.patch > > > The CachingHttpClient returns an HTTP 503 response when the backend HttpClient throws an IOException. > It happens for instance when the backend is DefaultHttpClient (AbstractHttpClient), issuing a request to a server not listening on the target port. > Well, it sounds tricky, but it makes the HttpClient not having a consistant behaviour in an implementation using both caching and regular clients. > If a 503 should really be returned in that case, I suggest the AbstractHttpClient to return it and the CachingHttpClient to just propagate any exception thrown by the backend. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org