Skip to content
Tcl Source Code History Of Ticket 403432ffffffffff
Login

History Of Ticket 403432ffffffffff

Artifacts Associated With Ticket 403432ffffffffff

  1. Ticket change [73122f23a9] (rid 104982) by dgp on 2001-01-26 02:00:14:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      CopyData() has a bug in its management of the number
      of bytes copied.  After reading and writing some bytes,
      it should update the byte count.  However, before it
      updates the byte count, it manages some fileevent
      handlers in the case that the writing operation has
      gone into the background.  In that circumstance, the
      copy loop is exited without an update to the byte count,
      leading to all the nastiness reported in Bug 118203.
      
      The fix is simple:  Move the byte count update earlier
      in the loop where it properly belongs.
      
      The patch also fixes an error in the file event management,
      where the wrong file event handler was being deleted.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: ""
    10. title initialized to: "Fix for Bug 118203"
    11. type initialized to: "Patch"
  2. Add attachment "None" [2bbcdc8b7a] (rid 118793) by dgp on 2001-01-26 09:00:14.

  3. Ticket change [8edc455f57] (rid 120187) by dgp on 2001-01-26 09:03:02:

    1. assignee changed to: "dgp"
    2. icomment:
      
      
      Patch Code - Modified - New Version
      
      Added patch id number to ChangeLog message.
      
      Please review.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  4. Ticket change [d4ff43c59e] (rid 123541) by dgp on 2001-01-26 09:07:09:

    1. icomment:
      
      
      Patch Code - Modified - New Version
      
      D'oh!  Correcting patch number...
      
      OK, now please review.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [b75b58eda5] (rid 125574) by dkf on 2001-01-26 17:04:45:

    1. icomment:
      Why the change from outChan to inChan in the centre of the patch?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [6462752f23] (rid 92759) by dgp on 2001-01-27 00:50:56:

    1. icomment:
      The change from outChan to inChan is a fix unrelated to
      Bug 118203.  I'm happy to move it to a separate patch if it
      delays acceptance of this patch.
      
      In generic/tclIO.c (Revision 1.27), compare lines 7058-7065
      to lines 7089-7096.  It looks to me like those sections are
      intended to change which channel, inChan or outChan, the
      copy operation is waiting on.  In lines 7058-7065, we know
      that inChan is not ready, so if we're already waiting on
      inChan (mask & TCL_READABLE), do nothing.  If we're not
      waiting on inChan, then check if we're waiting on outChan
      (mask & TCL_WRITABLE).  If so, cancel that wait, and start
      waiting on inChan, so when we exit the loop we're waiting
      only on inChan.
      
      To perform the analogous operation in lines 7089-7096, the
      change included in this patch is necessary.  Then the logic
      is that when outChan is not ready and we're not already
      waiting for it, cancel any wait for inChan, and start
      waiting for outChan.
      
      My assumption is that the copy operation wants to be waiting
      on only one of the channels at a time.  The fix implements
      that assumption.  As currently written, the copy operation
      can be waiting on both channels at the same time, and
      CopyData() may be called many times by an uncancelled
      readable fileevent when it can't do anything useful because
      outChan is still not ready. 
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [2c4c3f1e19] (rid 118876) by andreas_kupries on 2001-01-30 16:14:35:

    1. icomment:
      Thanks for the explanations Don. If this change with the filehandlers doesn't break any of the existing tests I would accept the patch as it is.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [7ccf8950c5] (rid 97142) by dgp on 2001-01-31 00:32:28:

    1. closedate changed to: "2001-01-30T17:32:28"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      Patch Code - Modified - New Version
      
      On my Solaris 2.7 system, a 'make test' on the
      contents of the CVS HEAD branch reports 0 tests failed
      both before and after this patch is applied.
      
      Committing to CVS HEAD...
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dgp"
  9. Ticket change [ceb856666b] (rid 148417) by dkf on 2016-08-22 12:30:20:

    1. closedate changed to: "2457623.02107237"
    2. closer changed to: "dkf"
    3. comment changed to:
      CopyData() has a bug in its management of the number
      of bytes copied.  After reading and writing some bytes,
      it should update the byte count.  However, before it
      updates the byte count, it manages some fileevent
      handlers in the case that the writing operation has
      gone into the background.  In that circumstance, the
      copy loop is exited without an update to the byte count,
      leading to all the nastiness reported in Bug 118203.
      
      The fix is simple:  Move the byte count update earlier
      in the loop where it properly belongs.
      
      The patch also fixes an error in the file event management,
      where the wrong file event handler was being deleted.
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
    7. subsystem changed to: "25. Channel System"