Overview
| Artifact ID: | 9ee106116a18199f5c3965125509f2e24a2a2fe7 |
|---|---|
| Ticket: | 219311ffffffffffffffffffffffffffffffffff
[fcopy -command] on serial port floods the event queue |
| User & Date: | nobody on 2000-10-26 05:10:31 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3648 Bug Version: 8.2.2 SubmitDate: '1999-11-23' LastModified: '1999-12-07' Severity: SER Status: UnAssn Submitter: techsupp ChangedBy: hobbs OS: Windows NT FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Alexandre Ferrieux ReproducibleScript: # to be fed to tclsh82.exe set com [open COM1: r] set nul [open c:/big.dat w] fconfigure $com -translation binary -mode 115200,n,8,1 fconfigure $nul -translation binary proc go args {puts CALLBACK;fcopy $::com $::nul -size 8000 -command go} after idle {puts IDLE!!!!!!!} go vwait forever ObservedBehavior: Run the script while something is feeding the serial port at full speed (eg another PC via a null modem cable)."CALLBACK"s are slowly output as expected (every 550ms at this speed of 115200 bauds), but the IDLE!!!! comes only when you starve the port. Clearly the internal polling of the port (10ms) mistakenly postpones idletasks. Notice that this happens only if the destination file is a true disk file (with nonzero write overheads). If you use NUL: instead there is no problem ! Also, with a true file the hard drive makes an awful noise, suggesting a lot of microscopic writes. Interestingly, a synchronous fcopy to the same file makes a normal noise (suggesting larger buffers). This happens on W95, W98, and NT. So the culprit is at the intersection of 8.2.2, WIndows, serial port, fcopy -command, nontrivial writes... DesiredBehavior: The idletask should occur immediately, just as it does on unix or if the file is NUL: - foundin changed to: "obsolete: 8.2.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "63. (unused)"
- title changed to:
[fcopy -command] on serial port floods the event queue
- type changed to: "Bug"