Skip to content
Tcl Source Code Artifact [9ee106116a]
Login

Artifact [9ee106116a]

Artifact 9ee106116a18199f5c3965125509f2e24a2a2fe7:

Ticket change [9ee106116a] - New ticket [219311ffffffffff|219311ffff] <i>[fcopy -command] on serial port floods the event queue</i>. by nobody on 2000-10-26 05:10:31.
D 2000-10-26T05:10:31
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3648\sBug\nVersion:\s8.2.2\nSubmitDate:\s'1999-11-23'\nLastModified:\s'1999-12-07'\nSeverity:\sSER\nStatus:\sUnAssn\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\sNT\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nAlexandre\sFerrieux\n\nReproducibleScript:\n#\sto\sbe\sfed\sto\stclsh82.exe\nset\scom\s[open\sCOM1:\sr]\nset\snul\s[open\sc:/big.dat\sw]\nfconfigure\s$com\s-translation\sbinary\s-mode\s115200,n,8,1\s\nfconfigure\s$nul\s-translation\sbinary\n\nproc\sgo\sargs\s{puts\sCALLBACK;fcopy\s$::com\s$::nul\s-size\s8000\s-command\sgo}\n\nafter\sidle\s{puts\sIDLE!!!!!!!}\ngo\nvwait\sforever\n\nObservedBehavior:\nRun\sthe\sscript\swhile\ssomething\sis\sfeeding\sthe\sserial\sport\sat\sfull\sspeed\s(eg\sanother\sPC\svia\sa\snull\smodem\scable)."CALLBACK"s\sare\sslowly\soutput\sas\sexpected\s(every\s550ms\sat\sthis\sspeed\sof\s115200\sbauds),\sbut\sthe\sIDLE!!!!\scomes\sonly\swhen\syou\sstarve\sthe\sport.\s\sClearly\sthe\sinternal\spolling\sof\sthe\sport\s(10ms)\smistakenly\spostpones\sidletasks.\nNotice\sthat\sthis\shappens\sonly\sif\sthe\sdestination\sfile\sis\sa\strue\sdisk\sfile\s(with\snonzero\swrite\soverheads).\sIf\syou\suse\sNUL:\sinstead\sthere\sis\sno\sproblem\s!\sAlso,\swith\sa\strue\sfile\sthe\shard\sdrive\smakes\san\sawful\snoise,\ssuggesting\sa\slot\sof\smicroscopic\swrites.\sInterestingly,\sa\ssynchronous\sfcopy\sto\sthe\ssame\sfile\smakes\sa\snormal\snoise\s(suggesting\slarger\sbuffers).\sThis\shappens\son\sW95,\sW98,\sand\sNT.\sSo\sthe\sculprit\sis\sat\sthe\sintersection\sof\s8.2.2,\sWIndows,\sserial\sport,\sfcopy\s-command,\snontrivial\swrites...\n\nDesiredBehavior:\nThe\sidletask\sshould\soccur\simmediately,\sjust\sas\sit\sdoes\son\sunix\sor\sif\sthe\sfile\sis\sNUL:\n\n\n\n
J foundin obsolete:\s8.2.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 63.\s(unused)
J title [fcopy\s-command]\son\sserial\sport\sfloods\sthe\sevent\squeue
J type Bug
K 219311ffffffffffffffffffffffffffffffffff
U nobody
Z 025e3d4ae252e1a5bc10c011da9955ef