Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b82f00d685d0db48e00b1966e8a75def907291ce
Ticket: 2901998fffffffffffffffffffffffffffffffff
Inconsistent buffered I/O
User & Date: andreas_kupries on 2009-12-02 03:03:59
Changes

  1. icomment:
    Note the code in rev 1.168 of tclIO.c, lines 6782 to 6847. This is inside of Tcl_Seek  and how it flushes pending output. Taking care of async and such as well. Is your channel possibly set to -blocking 0 ?
    
    I propose that we re-use this code, putting as much as possible into one or two functions which can then be called from the read code as well. (2 functions because seek needs this around the seek, and for read/gets we will likely need both called before reading)
    
    Looking further ... I see the replacement of a Tcl_Seek(0,CURR) by WillRead/Write ... Let us try to get this working without the replacement, and then we can try if the replacement is a proper equivalence.
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"