Skip to content

Matt/graceful shutdown#413

Merged
n8mgr merged 8 commits intomasterfrom
matt/graceful-shutdown
Mar 24, 2026
Merged

Matt/graceful shutdown#413
n8mgr merged 8 commits intomasterfrom
matt/graceful-shutdown

Conversation

@Alrighttt
Copy link
Copy Markdown
Contributor

Add a ThreadGroup to the RHP4 Server to enable graceful shutdown. During shutdown, in-flight RPCs complete before services close, and new RPCs are rejected with "host is shutting down" instead of failing mid-operation with "threadgroup closed" errors.

Fixes #412

Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

Tip: disable this comment in your organization's Code Review settings.

@github-project-automation github-project-automation bot moved this to In Progress in Sia Mar 23, 2026
@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 23, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgo.sia.tech/​core@​v0.19.0 ⏵ v0.19.1-0.20260323200052-1bfa3facc40899 +1100100100100

View full report

@Alrighttt
Copy link
Copy Markdown
Contributor Author

Must remove the replace from go.mod once SiaFoundation/core#392 is merged

@ChrisSchinnerl ChrisSchinnerl requested a review from peterjan March 24, 2026 08:29
ChrisSchinnerl
ChrisSchinnerl previously approved these changes Mar 24, 2026
Copy link
Copy Markdown
Member

@ChrisSchinnerl ChrisSchinnerl left a comment

Choose a reason for hiding this comment

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

@Alrighttt code looks good. I added a little unit test to demonstrate how we usually unit test RHP4 code.

@n8mgr n8mgr merged commit 8e1a1b8 into master Mar 24, 2026
13 checks passed
@n8mgr n8mgr deleted the matt/graceful-shutdown branch March 24, 2026 14:22
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Graceful shutdown for rhp server

4 participants