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

cnidarium(watch): always check that the channel is open #4474

Merged
merged 1 commit into from
May 28, 2024

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented May 24, 2024

Describe your changes

We need to bind server resource usage to the lifetime of a connection. Currently, the way client connection termination is percolated to the state watcher task is that sending over the channel would fail as soon as the receive handler is dropped. However, this is insufficient because we only send over the channel in specific cases. Instead, we should be checking unconditionally.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Mechanical change

@erwanor erwanor marked this pull request as ready for review May 28, 2024 12:12
@erwanor erwanor changed the title cnidarium: always check that the channel is open cnidarium(watch): always check that the channel is open May 28, 2024
@cratelyn cratelyn added the A-node Area: System design and implementation for node software label May 28, 2024
@cratelyn cratelyn added this to the Sprint 7 milestone May 28, 2024
@erwanor erwanor merged commit 2a15950 into main May 28, 2024
13 checks passed
@erwanor erwanor deleted the erwan/quickfix_watcher_send branch May 28, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-node Area: System design and implementation for node software
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants