Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 17639dc6a7168516d21f7e4a1aaf2c23058d64e8
Ticket: e0a7b3e5f8291c5de9fb54fc753543e4da699d0a
DoRead() omits needed call to UpdateInterest()
User & Date: dgp on 2015-08-10 17:35:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Brian Griffin has uncovered this, and it's been dissected in several
    messages on the TCLCORE mailing list.
    
    Any time the DoRead() routine acts so that the state of the input
    buffers on the channel toggles between EMPTY or NOT-EMPTY,
    there must be a call to UpdateInterest() to get the notifier and
    file event machinery to function properly.  This has been broken
    for about a year, where there is no call to UpdateInterest() in
    the case where a read of exactly the number of bytes requested
    also has the effect of precisely emptying the buffer.
    
    The fix is easy, will commit it to a branch shortly.  I hold back
    putting it on the main branches only briefly because I'm
    attempting to devise a test of the matter to go in the test suite.
    
  5. foundin changed to: "core-8-5-branch and trunk"
  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: "DoRead() omits needed call to UpdateInterest()"
  15. type changed to: "Bug"