<i>EAGAIN throw in reflected channel in blocking mode causes eof (data loss)</i> status still Open with 3 other changes
by
.
D 2016-07-12T02:24:43.998
J icomment OK,\sI\smisunderstood\syour\soriginal\spost.\sI\sthought\syou\shad\sa\sreflected\schannel\sin\sthe\smain\sthread\sthat\swrapped\sanother\sreflected\schannel\sin\sthe\sworker\sthread\sas\sopposed\sto\stransferring\sthe\schannel\screated\sin\sthe\sworker\sthread\sto\sthe\smain\sthread.\r\n\r\nThe\sbehaviour\sexhibited\sin\syour\sdemo\scode\sdoes\snot\sseem\slike\sa\sbug\sto\sme.\sIf\sthe\stransferred\schannel\sis\sset\sto\sblocking\smode,\sEAGAIN\sshould\sresult\sin\san\sEOF.\sIn\sthe\scommon\scase\sof\sa\ssingle\sthread,\show\swould\syou\sexpect\sthe\schannel\scode\sto\sbehave\son\sseeing\sa\sEAGAIN?\sIt\scannot\sreturn\sto\sthe\scaller\sbecause\sit\sis\ssupposed\sto\sbe\sa\sblocking\scall.\sIt\scannot\sgo\sto\sthe\sevent\sloop\svia\svwait\sor\ssimilar\sbecause\sthat\sis\snot\ssupposed\sto\shappen\sin\sa\sblocking\scall\swhere\sno\sother\scode\sis\ssupposed\sto\sexecute\suntil\sthe\sblocking\scall\sreturns.\sAnd\sI\sseriously\sdoubt\swe\swould\swant\sdiffering\sbehaviour\sdepending\son\swhether\sthe\sapp\sis\susing\smultiple\sthreads\sor\snot\s(whether\sthe\schannel\scode\sto\strack\sthat\sis\sa\sdifferent\smatter).\r\n\r\nI\salso\ssuspect\sthat\schanging\sthis\sdocumented\sbehaviour,\seven\sif\spossible,\swould\sbreak\sexisting\simplementations.
J login apnadkarni
J mimetype text/plain
K b9bfaf5fdb2cb794475fa70121c88859a8fc8496
U apnadkarni
Z 5aa120dfcd72d58eaf3dc53865d66b62