Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. closedate changed to: "2005-10-05T21:27:35"
  2. closer changed to: "andreas_kupries"
  3. 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.
    
    
    
  4. login: "andreas_kupries"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "andreas_kupries"