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

SyncQueue: fix manipulation of next_outgoing_index on error path #2541

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

styppo
Copy link
Member

@styppo styppo commented May 29, 2024

When the final request for an id failed (after retries), an error was returned to the caller without incrementing next_outgoing_index. This resulted in subsequent requests getting stuck without their results ever being returned from SyncQueue. Additionally, failed requests did not respect their queuing order when reporting the error to the caller.

Closes #2495.

Copy link
Member

@jsdanielh jsdanielh left a comment

Choose a reason for hiding this comment

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

LGTM

@styppo styppo force-pushed the styppo/sync-queue branch 2 times, most recently from 1a2acea to 3f144db Compare June 3, 2024 14:39
@styppo styppo force-pushed the styppo/sync-queue branch from 3f144db to 9c40ee3 Compare June 3, 2024 14:43
@styppo styppo merged commit 9c40ee3 into albatross Jun 3, 2024
11 checks passed
@styppo styppo deleted the styppo/sync-queue branch June 3, 2024 15:50
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone Jun 11, 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.

RequestMissingBlocks sometimes fails
2 participants