Overview
| Artifact ID: | 31c20c1c330c30ec093cc32d47a5278c36be2f75 |
|---|---|
| Ticket: | 3603553fffffffffffffffffffffffffffffffff
Problem width file larger 36K |
| User & Date: | dkf on 2013-02-11 16:15:16 |
Changes
- closedate changed to: "2013-02-11T09:15:16"
- closer changed to: "dkf"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"