Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-09-19
12:26 • Ticket [219292ffff] Wanted: Tcl_OutputBuffered() function status still Clos... artifact: 79efbe5304 user: schroedter
12:26 • Closed ticket [219292ffff]. artifact: 5862d3c132 user: schroedter
2001-09-18
13:54 • Ticket [219292ffff]: 4 changes artifact: 0532188088 user: schroedter
01:30 • Ticket [219292ffff]: 5 changes artifact: 8c339d32df user: andreas_kupries
2001-08-24
03:07 • Ticket [219292ffff]: 4 changes artifact: d058bd9c20 user: andreas_kupries
2001-04-04
04:46 • Ticket [219292ffff]: 1 change artifact: 533f1af321 user: dgp
2001-02-01
03:28 • Ticket [219292ffff]: 1 change artifact: b49ff1a7be user: dkf
2000-11-16
16:22 • Ticket [219292ffff]: 1 change artifact: e8aafa5a62 user: andreas_kupries
2000-10-26
05:10 • New ticket [219292ffff]. artifact: b36c0fb406 user: nobody

Wanted: Tcl_OutputBuffered() function

Closed219292ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:06
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.
andreas_kupries Ticket [219292ffff]: 1 change [History diff]2000-11-16 16:22:13
dkf Ticket [219292ffff]: 1 change [History diff]2001-02-01 03:28:37
dgp Ticket [219292ffff]: 1 change [History diff]2001-04-04 04:46:57
andreas_kupriesplain2001-08-24 03:07:57
Logged In: YES 
user_id=75003

See the recently approved TIP #49.
andreas_kupriesplain2001-09-18 01:30:00
Logged In: YES 
user_id=75003

Rolf, please close this when your code for 
Tcl_OutputBuffered() entered the CVS. I don't remember if 
it already has.
schroedterplain2001-09-18 13:54:15
Logged In: YES 
user_id=99573

Yes the code for Tip#49 Tcl_OutputBuffered() 
has been integrated by Donal K. Fellows 
Sep 06, 2001.
Unfortunately I'm not able to close #219292 .

Rolf.
schroedter Closed ticket [219292ffff]. [History diff]2001-09-19 12:26:10
schroedter Ticket [219292ffff]: 2 changes [History diff]2001-09-19 12:26:11
Log in (anonymous is fine) to add a comment.