<i>Channel system generating writable events BEFORE channel is open (refchan)</i> status still Open with 3 other changes
by
.
D 2024-03-30T14:42:53.119
J icomment I\ssee\stwo\ssides:\sAny\schannel\simplementation\sshould\sbe\srobust\senough,\sif\sa\s"write"\sis\sexecuted\son\sa\schannel\swhich\sis\snot\syet\sfully\sopened,\sit\sshould\sjust\sreturn\s0\sas\sa\ssignal\sto\sthe\scaller\sto\stry\sagain\slater\s(or\s-\sif\sthe\schannel\sis\sbuffered,\sput\sthe\sdata\sin\sthe\sbuffer).\sIs\stwapi\s(and\sthe\sTcl\ssocket\simplementation\son\swindows)\sdoing\sthat\scorrectly?\sIf\syes,\sadditional\stiming\sevents\sshouldn't\smatter:\snothing\sis\sreally\swritten\sto\sthe\sunderlying\schannel.\sIf\sno,\sthat's\sa\sbug\sthat\sshould\sbe\sfixed\sfirst.\r\n\r\nThat\ssaid,\sI\sdon't\sknow\sthe\sreason\sthose\stimer\sevents\sare\sgenerated.\sMaybe\sas\sa\sworkaround\sfor\sa\sbuggy\schannel\simplementation.\sIf\swe\swould\sremove\sthis,\sit\swill\smean\sthat\sthe\sbuggy\schannel\simplementation\swill\s-\sagain\s-\sstart\sto\sbehave\swrong.\sDo\swe\swant\sthat?\r\n\r\nIn\saddition,\sis\sthe\ssocket-14.11.0\stestcase\swritten\srobust\senough?\r\n\r\nFor\snow,\smany\smore\squestions\sthan\sanswers.\sBut\sremoving\sthis\stimer\scode\sis\snot\sthe\sfirst\sthing\sI\swould\srecommend.\sBetter,\slook\sfirst\sat\sthe\schannel\scode\sbehaving\sbad.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 080f846fd58958efeaa5e2247622dc0ee7fa1ff7
U jan.nijtmans
Z 2812b3c712f30f13c1341a4e2954cb08