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: use recv timeout if persistence task is active #10087

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Aug 5, 2024

closes #9926

this is an easy fix that allows us to handle persistence responses in case we no longer receive an engine message.

previously we were only advancing persistence once we received a new engine message, this now uses the recv_timeout call if there's a persistence action in progress so that we no longer block indefinitely.

I was looking into whether we need to redesign the entire message passing or use crossbeam select, but this is a lot simpler and similar to how crossbeam::Select works anyway.

@mattsse mattsse added the C-debt Refactor of code section that is hard to understand or maintain label Aug 5, 2024
@mattsse mattsse force-pushed the matt/use-recv-timeout-if-persistence-is-active branch from 2055920 to 565a297 Compare August 5, 2024 13:49
Copy link
Member

@fgimenez fgimenez left a comment

Choose a reason for hiding this comment

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

nice

@mattsse mattsse added this pull request to the merge queue Aug 5, 2024
Merged via the queue into main with commit 2d0c10e Aug 5, 2024
32 checks passed
@mattsse mattsse deleted the matt/use-recv-timeout-if-persistence-is-active branch August 5, 2024 15:12
martinezjorge pushed a commit to martinezjorge/reth that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve message tree task message model
2 participants