|
2026-11-13
| ||
| 11:18 | • Ticket [32318b14cb] transchan documentation around 'clear' is misleading... artifact: 825872155a user: serhiy.storchaka | |
|
2026-08-01
| ||
| 04:48 | • New ticket [32318b14cb]. artifact: 142d759dfa user: juliannoble2 | |
transchan documentation around 'clear' is misleading/incomplete
Open32318b14cbdd22aa289d3f4e800fc0417bfa617aCreated 124 days agoUpdated 20 days ago
Descriptionplain2026-08-01 04:48:47
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."
serhiy.storchaka Ticket [32318b14cb]: 2 changes
[History diff]2026-11-13 11:18:46
Log in (anonymous is fine) to add a comment.