<i>EAGAIN throw in reflected channel in blocking mode causes eof (data loss)</i>.
by
.
D 2016-06-23T20:03:38.976
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Th-1\sget\sa\sreflected\schannel\s"rch"\sfor\sreal\snon-blocking\schannel\s"ch"\sand\sdo\sthe\sprocessing\sof\sreal\schannel\stotally\sasynchronously\sin\sthread\sTh-2.\r\nIf\sTh-1\sswitches\sthe\sreflected\schannel\sto\sblocking\smode\sand\sthen\sdoes\s\r\n`set\sdata\s[read\s$rch]`\r\nAnd\sif\scurrently\sno\sdata\sfor\s"ch"\s(but\sstill\sno\seof),\sthe\sTh-2\sexecutes\s"return\s-code\serror\sEAGAIN"\sto\ssignal\sit\sshould\srepeat\slater.\r\n\r\nThen\sTh-1\sget\seof\son\s"rch"\sand\sstop\sread.\s\r\n\r\nI\sknow\sthat\sTh-2\scould\swait\swith\ssomething\slike\s`vwait`,\setc.,\sbut\simho,\sreflected\schannel\sshould\salso\saccept\sreturn\scode\sEAGAIN\sin\sblocking\smode\salso\s(and\swait\sthen\sin\sthe\smain\sthread\sof\schannel\sTh-1,\snot\sin\sreflected\sone\sTh-2,\sbecause\sif\sit\sasynchronous,\sit\scan\sserve\sseveral\schannels\sat\sonce)...
J foundin 8.5
J is_private 0
J login sebres
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter sebres
J subsystem 25.\sChannel\sSystem
J title EAGAIN\sthrow\sin\sreflected\schannel\sin\sblocking\smode\scauses\seof\s(data\sloss)
J type Bug
K b9bfaf5fdb2cb794475fa70121c88859a8fc8496
U sebres
Z 8eb54d6ff7b60944cd403ceb3a40dd3a