Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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>
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Minor"
  10. status changed to: "Open"
  11. submitter changed to: "pooryorick"
  12. subsystem changed to: "- New Builtin Commands"
  13. title changed to:
    a non-blocking [chan pipe] channel blocks when internal buffers fill up
    
  14. type changed to: "Bug"