Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 31c20c1c330c30ec093cc32d47a5278c36be2f75
Ticket: 3603553fffffffffffffffffffffffffffffffff
Problem width file larger 36K
User & Date: dkf on 2013-02-11 16:15:16
Changes

  1. closedate changed to: "2013-02-11T09:15:16"
  2. closer changed to: "dkf"
  3. icomment:
    
    
    allow_comments - 1
    
    OK, this one is evil. The problem is that if, when *not* flushing, the buffer inside zlib itself (32kB) fills up, it asks for Tk to write that buffer out (in 8kB chunks), yet Tk was getting that wrong and not writing anything at all! Only data written at a flushing point, or when the channel was being closed, was getting correctly through. Thus, any attempt to write data that was larger than 32kB *after* compression would fail unless extensive effort was made to force flushes. Ouch.
    
    Doubly embarrassing was that this was a one-line fix. The real bug was that the condition on code to do the writes was comparing the number of free bytes in the buffer (with zero) instead of the number of bytes to write (with zero). Duh!
    
    Fixed.
    
    
  4. login: "dkf"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "dkf"