Overview
| Artifact ID: | 773df72542670c431bcf8481d70d23483c47d047 |
|---|---|
| Ticket: | 1119780fffffffffffffffffffffffffffffffff
Tcl_BadChannelOption incorrect operation on stacked channels |
| User & Date: | andreas_kupries on 2005-10-06 04:27:35 |
Changes
- closedate changed to: "2005-10-05T21:27:35"
- closer changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 I see no problem here. The Tcl_GetchannelOption API invokes the driver of the top channel, and it is expected that a channel calls the channel below if necessary. I.e. the code is going through the stack from the top down to the base channel In the case of "optionName == NULL" this means that the channels write their configuration into the result, and the order is not fully specified, as a channel may invoke the channel below before or after it has written its own configuration. In this situation Tcl_BadChannelOption (TBCO) is not called. In the case "optionName != NULL" the receiving channel handles all options it knows. There is no TBCO call. Unknown options however are passed to the lower layer. Again the channel/transformation does not call TBCO. It is only the lowest layer, the base channel which can decide that yes, this option is truly not known by anyone, not even me. This layer then calls TBCO. Nobody else. Thus when the call stack is unwound no calls to TBCO will replace the error from the lower layer.
- login: "andreas_kupries"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "andreas_kupries"