hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vianney Carel (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCLIENT-980) CachingHttpClient returns a 503 response when the backend HttpClient produces an IOException
Date Thu, 19 Aug 2010 15:23:17 GMT
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


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


Mime
View raw message