Overview
| Artifact ID: | 69291a94877fa7e2d280584eac4c75599b33b0f0 |
|---|---|
| Ticket: | 218737ffffffffffffffffffffffffffffffffff
-blocking mode doesn't on Windows com ports |
| User & Date: | nobody on 2000-10-26 01:04:45 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1948 Bug Version: 8.0.4 SubmitDate: '1999-04-27' LastModified: '2000-04-26' Severity: SER Status: Released Submitter: pat ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '2000-04-26' FixedInVersion: 8.3.1 ClosedDate: '2000-10-25' Name: Berry Kercheval email: [email protected] Support: None Severity: 2 Synopsis: -blocking mode doesn't on Windows com ports ReproducibleScript: When a file channel $f is configured in -blocking mode (confirmed with fconfigure) and a "read $f $n" is issued, instead of reading $n bytes from the channel $f it reads as many are as available and returns immediately. The problem appears to be near line 692 of TclWinChan.c. The FILE_ASYNC flag is just ignored if *any* characters are ready; those are read and the function ComInputProc returns immediately. It appears that no effort is made to actually read $n bytes, requiring the programmer to "roll their own" proc to read $n bytes. This works correctly (blocks) in 8.3.1 (fix was likely in 8.2). -- 04/26/2000 hobbs
- foundin changed to: "obsolete: 8.0.4"
- 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: "-blocking mode doesn't on Windows com ports"
- type changed to: "Bug"