Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 142d759dfa8dc847877974ddc75e0123470e04e19a5c0eea598eeafdd4df93c0
Ticket: 32318b14cbdd22aa289d3f4e800fc0417bfa617a
transchan documentation around 'clear' is misleading/incomplete
User & Date: juliannoble2 on 2026-08-01 04:48:47
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    transchan documentation says "called when a chan seek is performed on the channel " and doesn't inform that when a transform declares the method, it is called before every write.
    The behaviour seems intentional (tests/ioTrans.test iortrans-78.1 "chan write, write clears read buffers")
    But the docs give no indication, which can bite in not-immediately-obvious ways (intermittent due to chunking boundaries) if a transform implementer naively clears all buffered state thinking it's obligatory.
    
    Tip 230 does indicate implementing 'clear' is optional if you *don't* have any internal buffers to clear - but also says "This happens only when the user seeks the channel the transformation is attached to."
    
  5. is_private changed to: "0"
  6. login: "juliannoble2"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "957fdfcd8744611e3fe1f4896c7538b1d9bf47b2"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "juliannoble2"
  13. subsystem changed to: "26. Channel Transforms"
  14. title changed to:
    transchan documentation around 'clear' is misleading/incomplete
    
  15. type changed to: "RFE"