Skip to content
Tcl Source Code Artifact [ac2f777850]
Login

Artifact [ac2f777850]

Artifact ac2f7778507594a850b966cfce3e5a63d7cef307:

Ticket change [ac2f777850] - Ticket [2827000fffffffff|2827000fff] <i>tcl incorrectly reports eof to application</i> status still Open with 4 other changes by andreas_kupries on 2009-07-29 05:14:45.
D 2009-07-29T05:14:45
J icomment More\sinvestigation\s...\sInstrumented\sthe\score\sa\sbit\s(what\sare\sthe\sarguments\sand\sresults\swhen\scalling\sa\schannel\sinputProc,\stcl_eof\sflags),\sand\scompared\straces\sfor\splain\ssocket\sand\sIChan\sover\ssocket.\n\nSockets\sare\snot\sreturning\san\s0-length\sread,\sbut\serrno\s-11\sEAGAIN\sto\ssignal\s'os\sbuffers\sempty,\sbut\snot\sat\seof'.\sThis\sis\stransformed\sinto\sCHANNEL_BLOCKED\sinstead\sof\sEOF.\sAt\sthe\sTcl\slevel\sthis\sis\sseen\sas\san\sempty\sstring\sresult\sof\sgets/read,\sno\seof,\sand\sno\sfblocked\sactually.\n\nIChan\sthen\sreturns\sthis\sempty\sstring,\swhich\sindicates\sbecomes\sa\ssuccessful\s(errno\s0)\s0-length\sread,\swhich\sindicates\sEOF,\sboom.\n\nThe\sbug\sis\snot\sin\sIChan,\sbut\sin\sthe\score\sreflected\schannel.\sIt\snever\sreturns\serror\sconditions\slike\sEWOULDBLOCK\sor\sEAGAIN\sfrom\sReflectInput(),\sonly\sEINVAL\sfor\sbad\shandler\sand\ssuch.\sAnd\sa\slimitation,\sthe\s'read\smethod'\shas\sno\sway\sto\ssignal\sthis\sto\sReflectInput()\seither.\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2827000fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 7e0db896812e58a707008ab3091b893f