<i>Transchan loses input data when written to</i> status still Open with 3 other changes
by
.
D 2016-01-20T22:35:24.967
J icomment Sure.\sThe\scrux\sof\sthe\sproblem\sis\sa\sconfusion\sbetween\stwo\skinds\sof\s"r+"\schannels:\s(1)\sthose\sthat\sare\struly\sboth\sreadable\sand\swritable,\sand\swhere\swrite+seek+read\scan\sgive\syou\sback\swhat\syou\swrote;\sand\s(2)\sthose\sthat\sare\sin\sfact\shiding\stwo\sindependent\sthings,\sone\sreadable,\sthe\sother\swritable,\swith\sno\sdiaphony\sever\s(e.g.\spipes\sand\ssockets).\r\n\r\nThe\sidea\sof\sthe\spatch\swas\sthat\sfor\sthe\swrite+seek+read\sinvariant\sto\shold,\syou\sneed\sto\sget\srid\sof\sbuffering.\sHence\sflushing\sbefore\sreading,\sand\sdiscarding\sinput\sbefore\swriting.\r\n\r\nOf\scourse\sthe\spatch\swas\sintended\sonly\sfor\skind\s(1).\r\n\r\nSince\schannels\sof\skind\s(1)\sare\sseekable\sand\sthose\sof\skind\s(2)\sare\snot,\swe've\sgot\sa\sdrug\starget\s:)
J login ferrieux
J mimetype text/plain
K 6141c1518631072728c55b18a6ae4ebbf1a0a3a2
U ferrieux
Z f62d1309db572b3cab683ce77afaeb20