Overview
| Artifact ID: | d0354e74d0a701b2e4d51bf5fa0246726e40580ec340ece9bb6bbb391f27d174 |
|---|---|
| Ticket: | f8fe1ebdc6ff050e29c50ad632d8195d33cc4293
a non-blocking [chan pipe] channel blocks when internal buffers fill up |
| User & Date: | pooryorick on 2019-04-29 06:52:29 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed 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 changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
a non-blocking [chan pipe] channel blocks when internal buffers fill up
- type changed to: "Bug"