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

feat: validate sequence numbers for file connections #11

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

richardstephens
Copy link
Contributor

We noticed one of our agents was seemingly sending bogus data that didn't match ipmitool. It was fixed by a restart. Looking at the captured data, I can see that the raw_reading value that we were expecting to see from the obviously bogus sensor was being captured by a different sensor up until we restarted our agent.

I can't say for certain that the sequence number is the issue but it seems plausible.

io::Error::new(
match Response::try_from(recv) {
Ok(response) => {
if response.seq() == self.seq {
Copy link
Owner

Choose a reason for hiding this comment

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

The only downside I see with this is that we "no longer" (not that I think anyone was ever using it, but you know) support reception of messages out-of-order.

I don't, however, think we need to worry about that now, just a comment for in the future. It should be easy to fix at any rate :)

@datdenkikniet datdenkikniet merged commit 7fcf415 into datdenkikniet:main Jan 24, 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.

2 participants