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(binding-modbus): clean up operations when timeout #1173

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

relu91
Copy link
Member

@relu91 relu91 commented Nov 24, 2023

If we don't clean up the queue and the application is looping trying to read Modbus registers, the queue will grow indefinitely. This cleans up the queue when a timeout occurs (e.g. wrong remote host or not reachable).

If we don't clean up the queue and the application is looping trying to
read modbus registers, the queue will grow indefinitely. This cleans up
the queue when a timeout occurs (e.g. wrong remote host or not reachable).
@relu91 relu91 changed the title Modbus: clean up operations when timeout fix(binding-modbus): clean up operations when timeout Nov 24, 2023
Copy link

codecov bot commented Nov 24, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (143c8a0) 76.52% compared to head (96ee543) 76.33%.
Report is 1 commits behind head on master.

Files Patch % Lines
packages/binding-modbus/src/modbus-connection.ts 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1173      +/-   ##
==========================================
- Coverage   76.52%   76.33%   -0.19%     
==========================================
  Files          80       80              
  Lines       16705    16829     +124     
  Branches     1616     1615       -1     
==========================================
+ Hits        12784    12847      +63     
- Misses       3891     3952      +61     
  Partials       30       30              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@danielpeintner danielpeintner left a comment

Choose a reason for hiding this comment

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

See also comment below

…n timeout

If we don't clean up the queue and the application is looping trying to
read modbus registers, the queue will grow indefinitely. This cleans up
the queue when a timeout occurs (e.g. wrong remote host or not reachable).
@relu91 relu91 merged commit 6c88392 into eclipse-thingweb:master Nov 29, 2023
11 checks passed
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.

2 participants