Skip to content
Tcl Source Code History Of Ticket f8fe1ebdc6ff050e
Login

History Of Ticket f8fe1ebdc6ff050e

Artifacts Associated With Ticket f8fe1ebdc6ff050e

  1. Ticket change [d0354e74d0] (rid 171200) by pooryorick on 2019-04-29 06:52:29:

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

    1. 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.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Invalid"
  3. Ticket change [25df0597d1] (rid 171202) by pooryorick on 2019-04-29 08:29:04:

    1. closedate changed to: "2458602.85352062"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"