Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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:
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.2.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "63. (unused)"
  10. title changed to:
    [fcopy -command] on serial port floods the event queue
    
  11. type changed to: "Bug"