Open KalibGao opened 2 years ago
Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.
Author: | KalibGao |
---|---|
Assignees: | - |
Labels: | `area-System.IO`, `untriaged` |
Milestone: | - |
I'm having the same problem, thanks for reporting this.
Description
In windows 10, when the first
TimeoutException
has occurred atSerialStream
=>Write
. then the next requests written to the serial port will fail and throw by the same exception.Reproduction Steps
Expected behavior
TimeoutException
will affect the next write() method?TimeoutException
?Actual behavior
when I look into the source code, the write method throw
TimeoutException
is here.https://github.com/dotnet/runtime/blob/f5d308df7f179a2e31d3ab49cc727832ef0a4a5d/src/libraries/System.IO.Ports/src/System/IO/Ports/SerialStream.Windows.cs#L1067-L1101
Regression?
No response
Known Workarounds
Configuration
No response
Other information
No response