Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c956075d318011fecfdbd176f71617af82b27613
Ticket: 2936225fffffffffffffffffffffffffffffffff
[chan copy] overruns slow receiver
User & Date: andreas_kupries on 2010-03-09 00:00:23
Changes

  1. icomment:
    We had a similar thing on the read side. It is now clear that I should have checked the write side for equivalent problems, and my blithe assumptions that there should not be such was wrong. Here is the ChangeLog entry.
    
    2009-08-06  Andreas Kupries  <[email protected]>
    
    * doc/refchan.n [Bug 2827000]: Extended the implementation of
    * generic/tclIORChan.c: reflective channels (TIP 219, method
    * tests/ioCmd.test: 'read'), enabling handlers to signal EAGAIN to
    indicate 'no data, but not at EOF either', and other system
    errors. Updated documentation, extended testsuite (New test cases
    iocmd*-23.{9,10}).
    
    If either EAGAIN  or EWOULDBLOCK work for the write-side I would prefer EAGAIN, and signaling as a literal error of this kind, i.e.
    
        return -code error EAGAIN, or
        error EGAIN
    
    Just to be consistent with the read side, in both method and value of signaling. Of these two I am more wedded to consistency in the method of signaling, i.e. throwing an error instead of using in-band signaling through a special return value for the #of written chars. I.e. if EWOULDBLOCK is considered to be the better signal value, then let us go with that.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"