Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b36c0fb4068b28e5de9152b99ce06332f6fb03ed
Ticket: 219292ffffffffffffffffffffffffffffffffff
Wanted: Tcl_OutputBuffered() function
User & Date: nobody on 2000-10-26 05:10:06
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2336 RFE
    Version: 8.1
    SubmitDate: '1999-07-07'
    LastModified: '2000-02-05'
    Severity: MED
    Status: UnAssn
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Linux-Red Hat
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    D. Richard Hipp
    
    DesiredBehavior:
    The API contains the function Tcl_InputBuffered() which returns the
        number
        of bytes currently in the input buffer.  But there is no corresponding
        Tcl_OutputBuffered() to say how many bytes are in the output queue
        waiting
        to be trasmitted.  I could use such a function to let my Tcl/C
        application
        know when it is generating data faster that the consumer can read it,
        and
        that it needs to throttle back the rate of data generation.
        
        I worked around the problem by only generating data in response to a
        "fileevent writable" callback.  Turns out "fileevent writable" only
        fires when the output queue is empty.  But Tcl_OutputBuffered() would
        still be nice to have.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "62. (unused)"
  10. title changed to: "Wanted: Tcl_OutputBuffered() function"
  11. type changed to: "RFE"