Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f6bd609c7c5fccf5e902d0122f47c6f02f594f87
Ticket: ef28eb1f15167156c8984df7ef430574743255bd
TCL_FILE_EVENTS cannot drive async I/O alone
User & Date: dgp on 2015-08-10 17:47:14
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    
    Another trouble that arose in the recent TCLCORE thread on
    socket handler bugs reported by Brian Griffin.
    
    The Tcl_DoOneEvent() routine advertises the ability to choose
    input flags to selectively process subsets of all possible events.
    
    The flag TCL_FILE_EVENTS has a name that suggests it will
    drive all the event handling needed to make async I/O work.
    That is not true.
    
    The way async I/O is actually implemented relies also on
    timer events in several places.  This includes draining input
    buffers and kick-starting async [chan copy] operations.
    
    The most difficult change needed to address this appears to
    be in the facilities offered by [chan create] to define so-called
    reflected channels.  The [chan postevent] command offered to
    signal chan events within a single thread is implemented by
    a direct call to Tcl_NotifyChannel().  If instead, you wish to
    have a trip through the event loop manage this (async vs sync),
    the only script-level tool that appears available is the use of
    a timer event established with the [after] command.
    
  5. foundin changed to: "all"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "25. Channel System"
  14. title changed to: "TCL_FILE_EVENTS cannot drive async I/O alone"
  15. type changed to: "Bug"