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.