Skip to content

fix(kad): wake Handler after pushing into pending_messages#4961

Closed
stormshield-frb wants to merge 1 commit intolibp2p:masterfrom
stormshield-frb:fix/pending-messages-might-be-not-detected
Closed

fix(kad): wake Handler after pushing into pending_messages#4961
stormshield-frb wants to merge 1 commit intolibp2p:masterfrom
stormshield-frb:fix/pending-messages-might-be-not-detected

Conversation

@stormshield-frb
Copy link
Copy Markdown
Contributor

@stormshield-frb stormshield-frb commented Nov 29, 2023

Description

Fixes: #4960.

Notes & open questions

N/A

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@stormshield-frb stormshield-frb force-pushed the fix/pending-messages-might-be-not-detected branch from 21778f0 to f6bc4e3 Compare November 29, 2023 15:49
@thomaseizinger
Copy link
Copy Markdown
Contributor

Finding all the bugs in my code @stormshield-frb ! 🙈

@thomaseizinger thomaseizinger changed the title fix(kad): pushing to pending_messages do not wake up Handler::poll fix(kad): wake Handler after pushing into pending_messages Nov 29, 2023
Copy link
Copy Markdown
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Great find!

I wonder if this is worth testing writing a test for although I am not sure how exactly we'd write one.

@stormshield-frb stormshield-frb force-pushed the fix/pending-messages-might-be-not-detected branch 2 times, most recently from 6c2da35 to cccf87b Compare November 30, 2023 09:23
@stormshield-frb stormshield-frb force-pushed the fix/pending-messages-might-be-not-detected branch from cccf87b to 77c734d Compare December 1, 2023 08:27
@thomaseizinger
Copy link
Copy Markdown
Contributor

As per discussion in #4960, I think we can close this as not necessary.

@stormshield-frb stormshield-frb deleted the fix/pending-messages-might-be-not-detected branch March 18, 2024 08:08
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.

Handeling of events received in kad::Handler could be delayed or blocked

3 participants