Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a97a59fdd8aec0d8ff6e4f9eca10eddc1b03f5a2
Ticket: 2936225fffffffffffffffffffffffffffffffff
[chan copy] overruns slow receiver
User & Date: ferrieux on 2010-03-06 18:41:36
Changes

  1. icomment:
    colin -- your oflow uses a synchronous fcopy, hence doesn't exhibit the problem because in that case fcopy uses only blocking IO and no fileevents.
    
    Back to my script, I suspect it shows a problem in the current refchan interface with the two-state async-fcopy state machine (alternating readable and writable fileevents), because the initial state allows for a write, and depends on a "short write" to switch state and register a writable fileevent; *and* the refchan API currently doesn't allow for short writes...
    
    Then the memory-filling effect in your case is crystalline: fcopy stays in its initial "goahead and write until you get short writes" state, and the underlying nonblocking [puts] accumulates in the lower channel' buffers.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"