Skip to content
Tcl Source Code Artifact [910a7d8dc9]
Login

Artifact [910a7d8dc9]

Artifact 910a7d8dc949cd8911c2c9e70a03e9f1fd0d4c57:

Ticket change [910a7d8dc9] - Ticket [3059220fffffffff|3059220fff] <i>On Windows non-blocking pipe does not flush</i> status still Open with 4 other changes by ferrieux on 2010-09-04 15:24:11.
D 2010-09-04T15:24:11
J icomment Weird\sindeed\s:/\nNot\sreproducible\sin\sLinux\s(too\sbad\ssince\swe\shave\sstrace).\n\nJust\sone\sminor\scomment\sabout\s"non-blocking\sI/O\sdoes\snot\sneed\sthe\sevent\sloop\sif\sfilevents\sare\snot\sbeing\sused":\nThe\struth\sis\sthat\sa\snonblocking\swrite\sthat\shas\sbeen\sonly\spartially\sdone,\sbecause\sof\sa\sfull\spipe\sbuffer\sfor\sexample,\screates\san\sinternal\s"fileevent\swritable"\sto\sresubmit\sthe\srest\swhen\sthe\schannels\sunlocks.\sSo\sthis\ssecondary\sIO\sneeds\sthe\sevent\sloop.\sBut\sin\syour\sexample,\sthe\stiny\sstrings\syou\swrite\sto\sthe\schild\scannot\sbe\sblamed\sfor\sfilling\sa\spipe\sbuffer\s(typically\s4k)...\s\sHence\syou\sare\sright\sthat\sall\sthese\swrites\sshould\sbe\sdone\simmediately\sand\scompletely.\n\nRandom\sshots\sto\sprobe\sthe\sugly\sinternals\sof\sWindows\sIO:\n\s-\stry\sunbuffered\n\s-\splay\swith\sthe\scrlf/binary\stranslation\n\s-\sreplace\s\s[puts\s\\n]\swith\s[puts\s-nonewline\s\\n\\n]\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3059220fffffffffffffffffffffffffffffffff
U ferrieux
Z 6fa6a1ab2466132a5d34547498e25896