Skip to content
Tcl Source Code History Of Ticket ef28eb1f1516
Login

History Of Ticket ef28eb1f1516

Artifacts Associated With Ticket ef28eb1f1516

  1. Ticket change [f6bd609c7c] (rid 142768) by dgp on 2015-08-10 17:47:14:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized 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 initialized to: "all"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "25. Channel System"
    14. title initialized to: "TCL_FILE_EVENTS cannot drive async I/O alone"
    15. type initialized to: "Bug"
  2. Ticket change [e3eeb351db] (rid 171173) by pooryorick on 2019-04-24 04:57:10:

    1. 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.
      
    2. icomment: "Fixed in [e066e24f36f6] for issue [67a5eabbd3d1]."
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
    5. status changed to: "Pending"
  3. Ticket change [cb779fc03d] (rid 194808) by dgp on 2021-06-16 17:48:33:

    1. icomment:
      
      That change doesn't really address the issue here, best I can recall.
      After the change, it remains true that I/O operations cannot fully function
      with support of TCL_FILE_EVENTS only, and TCL_TIMER_EVENTS have to be
      working too.  The shift is just in whether a reflected channel can make
      a choice of synchronous [chan postevent] or use [after] to create async
      operations.  After the change, [chan postevent] itself is asyncronous
      by use of timer events internally created.  The need for timer events
      is still there, just out of script-level control.
      
      The other effect is to remove the ability for a synchronous use
      of [chan postevent], which is at least the incompatible change of
      loss of function in a public command.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [7e0e9d92f9] (rid 194916) by pooryorick on 2021-06-20 05:15:27:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. status changed to: "Open"