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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "63. (unused)"
- title changed to:
Need to split bidirectional channels (sockets; pipes or devi
- type changed to: "Patch"