<i>transchan documentation around 'clear' is misleading/incomplete</i>.
by
.
D 2026-08-01T04:48:47.027
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment transchan\sdocumentation\ssays\s"called\swhen\sa\schan\sseek\sis\sperformed\son\sthe\schannel\s"\sand\sdoesn't\sinform\sthat\swhen\sa\stransform\sdeclares\sthe\smethod,\sit\sis\scalled\sbefore\severy\swrite.\r\nThe\sbehaviour\sseems\sintentional\s(tests/ioTrans.test\siortrans-78.1\s"chan\swrite,\swrite\sclears\sread\sbuffers")\r\nBut\sthe\sdocs\sgive\sno\sindication,\swhich\scan\sbite\sin\snot-immediately-obvious\sways\s(intermittent\sdue\sto\schunking\sboundaries)\sif\sa\stransform\simplementer\snaively\sclears\sall\sbuffered\sstate\sthinking\sit's\sobligatory.\r\n\r\nTip\s230\sdoes\sindicate\simplementing\s'clear'\sis\soptional\sif\syou\s*don't*\shave\sany\sinternal\sbuffers\sto\sclear\s-\sbut\salso\ssays\s"This\shappens\sonly\swhen\sthe\suser\sseeks\sthe\schannel\sthe\stransformation\sis\sattached\sto."
J is_private 0
J login juliannoble2
J priority 5\sMedium
J private_contact 957fdfcd8744611e3fe1f4896c7538b1d9bf47b2
J resolution None
J severity Minor
J status Open
J submitter juliannoble2
J subsystem 26.\sChannel\sTransforms
J title transchan\sdocumentation\saround\s'clear'\sis\smisleading/incomplete
J type RFE
K 32318b14cbdd22aa289d3f4e800fc0417bfa617a
U juliannoble2
Z 15b21e0ec018896051a382f092da8128