Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary code, originally for checking for disconnects when using non-overlapped I/O #147

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 24, 2022

Build on top of #144 (thanks @palazzol).

I've taken the commit from #144 and removed also the timeout logic that is no more needed.

The old code is no more needed when using overlapped I/O,
getOverlappedEvent() returns all required error codes.

Calling getCommState()/setCommState() every second in some
applications contributes to other downstream issues. For examples:

bugst#60 (comment)
arduino/arduino-ide#375
@cmaglie cmaglie merged commit bc6a7f7 into bugst:master Nov 29, 2022
@cmaglie cmaglie deleted the remove_windows_timeout_loop branch November 29, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Malformed data being sent on Windows
2 participants