Skip to content

refactor: implement graceful shutdown and server management#81

Merged
soulteary merged 1 commit intomainfrom
docker-go-secure
Jan 6, 2026
Merged

refactor: implement graceful shutdown and server management#81
soulteary merged 1 commit intomainfrom
docker-go-secure

Conversation

@soulteary
Copy link
Copy Markdown
Owner

  • Introduced a new Server struct to manage the HTTP server and its lifecycle.
  • Enhanced the Launch function to return a Server instance, allowing for better control over server operations.
  • Implemented a Shutdown method for graceful server shutdown, ensuring ongoing requests are completed before stopping.
  • Updated createHookHandler to check server shutdown status, rejecting new requests if the server is shutting down.
  • Modified signal handling to include a shutdown callback for graceful termination.

- Introduced a new Server struct to manage the HTTP server and its lifecycle.
- Enhanced the Launch function to return a Server instance, allowing for better control over server operations.
- Implemented a Shutdown method for graceful server shutdown, ensuring ongoing requests are completed before stopping.
- Updated createHookHandler to check server shutdown status, rejecting new requests if the server is shutting down.
- Modified signal handling to include a shutdown callback for graceful termination.
@soulteary soulteary merged commit 6d516b4 into main Jan 6, 2026
2 checks passed
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.

1 participant