Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b7a186a39efcf1cad704d0ca00b3b605f61d73006b20deb04c7cb5d6170909d5
Ticket: de232b49f26da1c18e07513d4c7caa203cd27910
write-only nonblocking refchan and Tcl internal buffers
User & Date: pooryorick on 2024-03-31 17:03:58
Changes

  1. icomment:
    I don't see anything wrong with delaying the writable event notification
    until a connection is established, but that should be done in such a way
    that this issue remains fixed.  I have an idea for that:  The issue here
    is that "writable" event notice happens once, then a "writable" event
    happens once but then never again because Tcl writes to a buffer instead
    of calling the "write" procedure for the refChan.  I think it's pretty
    clear that refchan implementations shouldn't be burdened with the duty
    of maintaining timers, so somehow, Tcl must keep the "writable" event
    signaling until the "write" procedure of the refchan is actually called.
    The timer in UpdateInterest() is currently taking care of that.  There
    is an opportunity to have Write() set up the timer instead, since that's
    the procedure that would call refchan if it a buffer was full.  In that
    case, the timer-based "writable" event would only happen after some
    initial event has lead to a call to Write().
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"