Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ff32f673f35239206dae74afc5286acaf0422f1d
Ticket: 3610253fffffffffffffffffffffffffffffffff
CopyChunk does not drain decompressor(s)
User & Date: kaitzschu on 2013-04-07 20:42:10
Changes

  1. assignee changed to: "patthoyts"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When retrieving a file from chunked+gzip enabled server (SourceForge project web) I got constantly truncated result. File size was always an exact multiple of 64k bytes and was missing the tail. It seems that http::CopyChunk trusts there can't be more data left on decompression buffer than one /stream get/ can return and does only one round of gets (using /add -finalize/). Attached patch (agains core.tcl.tk version of file) fixed the problem for me, but I'm not quite sure if the encoder chaining (the reason to foreach streams?) has been taken into account correctly.
    
    As a side note, MAX_BUFFER_SIZE has been declared as 65536 but is being referred as "65k" elsewhere in the file http.tcl.
    
  4. foundin changed to: "current: 8.6.0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kaitzschu"
  10. subsystem changed to: "29. http Package"
  11. title changed to: "CopyChunk does not drain decompressor(s)"
  12. type changed to: "Bug"