hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Moore (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-1011) CachingHttpClient.execute() does not catch the IOException thrown by HttpCache.getCacheEntry()
Date Tue, 12 Oct 2010 19:31:33 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Moore updated HTTPCLIENT-1011:
---------------------------------------

    Attachment: cache-ioexception.patch

The attached patch fixes this issue; now cache IOExceptions are caught, logged at WARN, and
then ignored (hooray, HTTP protocol robustness to failure).

This patch is contributed to the ASF with the permission of my employer.


> CachingHttpClient.execute() does not catch the IOException thrown by HttpCache.getCacheEntry()
> ----------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1011
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1011
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: Cache
>    Affects Versions: 4.1 Alpha2
>            Reporter: Felix Berger
>         Attachments: cache-ioexception.patch
>
>
> The IOException caused by the HttpCache is not caught and thus the whole http request
fails. I would expect the response to be retrieved from the backend when the cache fails for
some reason.

-- 
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