Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 54569b1df135bb727af2db24f5731462b4ce5e47
Ticket: 7c187a377311556abe067987cbd6a4009becf689
Abort: Reuse of ChannelBuffer! when using sockets with fcopy or tls/ssl on Linux
User & Date: dgp on 2014-12-18 17:36:16
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    
    
    This is the fix.  Will commit once I've added a test case.
    
    Index: generic/tclIO.c
    ==================================================================
    --- generic/tclIO.c
    +++ generic/tclIO.c
    @@ -9213,10 +9213,13 @@
         } else {
            outStatePtr->outQueueHead = inStatePtr->inQueueHead;
         }
         outStatePtr->outQueueTail = tail;
         inStatePtr->inQueueHead = bufPtr;
    +    if (inStatePtr->inQueueTail == tail) {
    +       inStatePtr->inQueueTail = bufPtr;
    +    }
         if (bufPtr == NULL) {
            inStatePtr->inQueueTail = NULL;
         }
     
         code = FlushChannel(csPtr->interp, outStatePtr->topChanPtr, 0);
    
  3. login: "dgp"
  4. mimetype: "text/plain"