<i>Notification when there's no data</i> status still Open with 4 other changes
by
.
D 2001-09-19T07:09:15
J icomment Logged\sIn:\sYES\s\nuser_id=75003\n\nI\stalked\sabout\sthis\sline\n\n17:03:34\sselect(23,\s[4\s6\s8\s10\s12\s16\s18\s20\s22],\s[],\s[4\s6\s8\s\n10\s12\s14\s16\s18\s20\s22],\s{0,\s0})\s=\s0\s(Timeout)\n\n...\sOk,\sthe\smanpage\sof\sselect\ssays\sthat\sthe\sread\slist\sis\s\nthe\ssecond\sargument\s...\s14\sis\smissing.\sIt\sshouldn't\sbe,\s\nthere\sis\sa\sTcl_CreateFileHandler\scall\sbefore\sthat\swithout\s\nintervening\sTcl_DeleteFileHandler.\n\nUnderstand\sthat\swe\sare\stalking\sabout\stwo\slevels\sof\s\nbufering/data\shere.\sOne\sis\sdata\sbuffered\sin\sthe\sOS\sfor\sthe\s\nprocess.\sThe\sother\sis\sdata\sbuffered\sby\sTcl\sitself.\sExpect\s\nis\sgiven\sa\snotification\sthat\sthere\sis\ssome\sdata\savailable.\s\nThis\sdata\shappens\sto\sbe\sin\sthe\stcl\sbuffers.\sIn\sour\s\nsituation\sexpect\sasks\stcl\sfor\smore\sthan\sis\sin\sthe\sbuffers,\s\nso\stcl\sasks\sthe\sOS\sand\sgiven\sthat\sthe\s'read'\sis\sblocking\s\nbut\sas\sthe\stcl\score\sbelieves\sthat\sit\swill\sperform\sa\s\nnonblocking\scall\s(line\s512)\stcl\sis\sperfectly\sright\sto\sdo\s\nthis\scall.\sIt\sexpect\sthat\sthe\scall\swill\sgive\sit\sa\sshort\s\nread.\sAnd\shangs\sbecause\sunexpectedly\sthe\scall\sis\sactually\s\nblocking.\n\nIf\sI\sunderstand\syour\ssituation\scorrectly\sthe\sexternal\s\nprocess\swaits\sfor\sa\sinformation\ssend\sto\sit\sby\sexpect\sand\s\nexpect\sexpects\s(sic!)\sthe\ssame\schannel\sto\ssend\ssomething\sto\s\nit\s(after\sit\salready\sgot\spartial\sinformation\s?).\sThis\sis\s\nsomething\sI\sshould\sbe\sable\sto\sreproduce\swith\sa\ssimpler\s\nscript.\sRight\s?\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 462317ffffffffffffffffffffffffffffffffff
U andreas_kupries
Z 3e3976cb030e146a624d61b457888781