Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1c31d4580b6ef7085608f3aaf616cdb4a8ab59a0
Ticket: 2936225fffffffffffffffffffffffffffffffff
[chan copy] overruns slow receiver
User & Date: ferrieux on 2010-03-06 08:36:43
Changes

  1. icomment:
    Attached mychan.tcl which reproduces something strange though different.
    
    It is a trivial refchan only implementing all verbs but just logging in most cases. It has no underlying fd, it just swallows what's given to [write]. With [write] returning either the full input data size (infinitely fast sink) or -1 (blocking ?), the fcopy runs at full speed. With 0 an error is reported immediately. Strangely, no other verbs than initialize, write and configure are called. This regardless of the blocking mode of the reflected channel.
    
    Andreas, can you explain this ? I know that internally [fcopy] makes use of writable fileevents on its sink, but no such thing reaches the refchan...
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"