Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 30c0beff3259757259150ca055c5f2d5595e22d5
Ticket: 219159ffffffffffffffffffffffffffffffffff
Need to split bidirectional channels (sockets; pipes or devi
User & Date: nobody on 2000-10-26 05:02:26
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1429 RFE
    Version: 8.0.4
    SubmitDate: '1999-03-04'
    LastModified: '2000-05-04'
    Severity: SER
    Status: Assigned
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 5339
    OS: Other
    Machine: NA
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Alexandre FERRIEUX
    
    DesiredBehavior:
        The Tcl Channel model is a useful abstraction, that effectively tries to
        wipe out many OS peculiarities. However, the particular case of
        "bidirectional" channels (e.g. pipes in "r+" mode) is somewhat tricky:
        in this case a single channel hides *two* OS-level descriptors/handles.
        The problem is that most configuration operations apply to both
        simultaneously, which is not always wanted.
         For example, [fconfigure -blocking 0] cannot be told to only the write
        side of an r+ pipe. Also, as already noted on clt, you cannot close only
        the write side, so that the child gets an EOF, then listen to its last
        words on the read side: both are closed at the same time. A slightly
        different case is that of sockets, which are indeed made of a single
        bidirectional descriptor. Still, it would be very useful (for the same
        reasons) to be able to issue a half-close, as is possible with the
        shutdown() syscall.
        
        Proposed unified syntax for this extension: a "-readside/-writeside"
        option to the [close] and [fconfigure] commands.
        
    
    
    
    
    5339 discusses the separation of r/w for close. 
    -- 05/04/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "63. (unused)"
  10. title changed to:
    Need to split bidirectional channels (sockets; pipes or devi
    
  11. type changed to: "Patch"