Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1460

Cached files would be deleted after CloseableHttpClient being closed.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.4 Alpha1
    • Component/s: HttpCache
    • Labels:
      None

      Description

      I created a `CloseableHttpClient` from `CachingHttpClientBuilder`. I assigned a directory for the `CloseableHttpClient`'s cacheDir.

      The `CloseableHttpClient` worked well for processing requests with cache. But after `CloseableHttpClient.close()` invoked, all cached files were deleted. Therefore, new `CloseableHttpClient` in new JVM cannot reuse original cache.

      This behavior is different from browsers or JDK's http clients.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yangbo Yang Bo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: