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

spsc-queue: Reload cached_tail/head when opening queue #243

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

edgarigl
Copy link
Contributor

@edgarigl edgarigl commented Jun 24, 2024

This PR fixes an issue I've seen when reconnecting to an active queue. I think we need to refresh the local cached_tail/head before we start sending/receiving packets.

Reload cached_tail/head when opening queues. This fixes
reconnecting to active queues.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
@edgarigl edgarigl marked this pull request as ready for review June 24, 2024 10:50
@sgherbst sgherbst self-requested a review July 2, 2024 16:22
Copy link
Contributor

@sgherbst sgherbst left a comment

Choose a reason for hiding this comment

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

LGTM!

@sgherbst sgherbst merged commit 70247e6 into zeroasiccorp:main Jul 2, 2024
6 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