Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ab5ede410f1ae649ea53b1824f33ddc34b86ad26
Ticket: 1749581fffffffffffffffffffffffffffffffff
chan pending not updated without a gets
User & Date: mpc_janssen on 2007-08-15 06:50:06
Changes

  1. closedate changed to: "2007-08-14T23:50:06"
  2. closer changed to: "mpc_janssen"
  3. icomment:
    Logged In: YES 
    user_id=1463011
    Originator: YES
    
    The behaviour as observed is correct, because chan pending only is useful after an input command. I was really barking up against the wrong tree here. The real issue was that read and gets behave fundamentally different in non-blocking mode. Gets will only return a full line. read will return whatever it has regardless of what you asked for.
    If read's behaviour would be made the same as gets, chan pending and fblocked would make sense for read also and lessen the bookkeeping burden on the programmer as well.
    
    
  4. login: "mpc_janssen"
  5. mimetype: "text/plain"
  6. status changed to: "Closed"
  7. username: "mpc_janssen"