Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 37cda764eb19de93ad613aa3982406e9a66cbe72
Ticket: 2913585fffffffffffffffffffffffffffffffff
[win32] serial channel blocks indefinitely on write
User & Date: a_kovalenko on 2010-06-18 12:26:38
Changes

  1. icomment:
    It turned out that there is a workaround for this bug, namely, 
    
    (#1) always wait for writable state, using [fileevent], before writing
    anything to port,
    
    (#2) _and_ don't set buffering to none (haven't yet tested what
    happens if I wait for fileevent and write more than -buffersize; it
    might as well be important always to write less).
    
    I continue to regard this as a bug, though: (#1) that is
    understandable and (#2) that is rather obscure must be _both_
    respected, and the penalty of uclosable channel and unopenable port
    (forever..err, until the application is restarted) seems cruel and
    unusual anyway. Documenting requirements (#1) and (#2) would be
    significantly better than nothing.
    
    
    
  2. login: "a_kovalenko"
  3. mimetype: "text/plain"
  4. username: "a_kovalenko"