Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f46a576bbefd735a889661d4db7db37b4e79a8b6
Ticket: 3525907fffffffffffffffffffffffffffffffff
[zlib push decompress] doesn't work with [fileevent readabl]
User & Date: teopetuk on 2012-05-11 17:27:33
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi!
    
    I've tried to use [zlib push decompress] on an unblocked network channel and found that it doesn't read from the channel if it isn't closed by the peer. In the attached script the server part puts two strings into a compressed channel (one immediately and the other after 5 second delay). Apparently, the client side readable fileevent fires many times during these 5 seconds but [read $chan] returns empty string every time. After the finishing [close] the client reads and reports the message (but only the second one!).
    
    I would expect the both messages were printed.
    
    Currently, I can use a separate [zlib stream decompress] and read the raw bytes from the channel, but I don't think that it's a perfect solution.
    
  4. foundin changed to: "obsolete: 8.6b2"
  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: "teopetuk"
  10. subsystem changed to: "57. zlib"
  11. title changed to:
    [zlib push decompress] doesn't work with [fileevent readabl]
    
  12. type changed to: "Bug"