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

gzip responses doubly cached

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.5
    • 5.4-alpha1
    • HttpCache
    • ARCH Linux kernel 3.8.8-1
      node.js 0.8.22

    Description

      Compressed responses are cached twice.

      Run the attached server (node.js 0.8.22) and client tests. Create an "assets" directory under where you are running the server and add two files named 1 and 2 ( < 1000000 bytes) . You will see that after the test is run the cache dump output displays 2 sets of entries for each request, each containing the full content length of the file.

      Changing the implementation of HttpCacheStorage updateEntry to not update non existent entries (as I believe the correct implementation should do) throws exceptions.

      Attachments

        1. Showing_entry_pointer.png
          179 kB
          Joe Campbell
        2. Screen Shot 2014-01-13 at 3.56.19 PM.png
          49 kB
          Joe Campbell
        3. Screen Shot 2014-01-11 at 7.11.36 PM.png
          79 kB
          Joe Campbell
        4. output.out
          2 kB
          Arturo Bernal
        5. httpClientTestServer.js
          0.7 kB
          Adam Patacchiola
        6. httpClientCacheTest.tar.gz
          2.36 MB
          Adam Patacchiola
        7. Archive.zip
          1.62 MB
          Arturo Bernal

        Activity

          People

            Unassigned Unassigned
            madman6000 Adam Patacchiola
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: