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

Fix write timeout for COM ports #158

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

nskartoredjo
Copy link
Contributor

@nskartoredjo nskartoredjo commented Feb 13, 2024

Resolves the issue where the COM-port write procedure is blocking, which is caused by a static timeout deceleration equal to zero. In general, you would suspect that the set_timeout builder method applies a timeout to both the read and write procedures, as the documentation would suggest.

Fixes #124

Copy link
Contributor

@eldruin eldruin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you for finding and fixing this.
Indeed it is already documented that the set_timeout function "Sets the timeout for future I/O operations." so I would classify this as a fix and not a change.
Could you add an entry about this in the Fixed section of the changelog?
I understand this fixes #124

@nskartoredjo
Copy link
Contributor Author

Sorry for the long wait, I've updated the changelog while trying to keep the current format

Copy link
Contributor

@eldruin eldruin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!

@eldruin eldruin merged commit 954a622 into serialport:main Feb 16, 2024
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.

Serial write stalls application on some Windows machines
2 participants