Artifacts Associated With Ticket f8fe1ebdc6ff050e
Ticket change [d0354e74d0] (rid 171200) by pooryorick on 2019-04-29 06:52:29:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The following script never completes because once Tcl's internal buffers fill up, writable events on the channel no longer occur. <code><verbatim> variable total 0 proc write chan { variable total variable done set data [info cmdcount][string repeat abcdefghijklmnopqrstuvwxyz 100] set len [string length $data] puts [list writing $len characters] puts $chan $data if {[incr total $len] > 1048576} { close $chan set done 1 } } lassign [chan pipe] pr pw chan configure $pw -blocking 0 chan event $pw writable [list write $pw] vwait done puts done </verbatim></code> - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
a non-blocking [chan pipe] channel blocks when internal buffers fill up
- type initialized to: "Bug"
Ticket change [dc7a19eab8] (rid 171201) by pooryorick on 2019-04-29 07:56:04:
- icomment:
The documentation for [chan write] states, "A channel is considered to be writable if at least one byte of data can be written to the underlying file or device without blocking, or if an error condition is present on the underlying file or device." Therefore, this is the expected behaviour.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- icomment:
Ticket change [25df0597d1] (rid 171202) by pooryorick on 2019-04-29 08:29:04:
- closedate changed to: "2458602.85352062"
- closer changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- status changed to: "Closed"