Skip to content

fix: fix potential infinite event queue buffering - #706

Draft
adamspofford-dfinity wants to merge 3 commits into
mainfrom
spofford/speculative-fseventsd-optimize
Draft

fix: fix potential infinite event queue buffering#706
adamspofford-dfinity wants to merge 3 commits into
mainfrom
spofford/speculative-fseventsd-optimize

Conversation

@adamspofford-dfinity

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings August 12, 2026 15:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Prevents managed launcher file watchers from hanging during shutdown when event channels are full.

Changes:

  • Groups watchers and receivers to enforce safe drop order.
  • Adds watcher completion and shutdown regression tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +372 to +377
let mut session = WatchSession {
rec_rx,
poll_rx,
_rec_watcher: rec_watcher,
_poll_watcher: poll_watcher,
};
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