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

Disable Leader packet timeout #746

Closed
wants to merge 11 commits into from

Conversation

hackel6
Copy link
Contributor

@hackel6 hackel6 commented Dec 16, 2022

#732
https://aravis-project.discourse.group/t/external-triggering-of-spectral-instruments/548

Frames will no longer timeout after expiration of the frame_retention_timeout period if the ONLY packet received so far is a leader packet.

@hackel6 hackel6 marked this pull request as ready for review December 16, 2022 22:14
@EmmanuelP
Copy link
Contributor

Hi,

Thanks for the patch.

I think the test is incomplete, current_frame can point to a previous frame, for example if a resent packet is received.

@EmmanuelP EmmanuelP marked this pull request as draft February 17, 2023 08:07
@EmmanuelP EmmanuelP marked this pull request as ready for review February 17, 2023 08:08
@hackel6
Copy link
Contributor Author

hackel6 commented Feb 22, 2023

Thanks for the feedback.
does this look better? now i'm using last_frame_id to determine if it's the most recent frame received (which is really the only one we care about i think)

EmmanuelP pushed a commit that referenced this pull request Feb 27, 2023
Don't start frame timeout on leader packet reception, as it could have been sent
early, at acquisition start.

https://aravis-project.discourse.group/t/external-triggering-of-spectral-instruments/548
@EmmanuelP
Copy link
Contributor

Pushed to main. Thanks.

@EmmanuelP EmmanuelP closed this Feb 27, 2023
@hackel6 hackel6 deleted the leader-packet-timeout branch August 27, 2024 18:19
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