Skip to content

feat: Graceful shutdown via stop(int) and builder shutdownTimeoutSeconds#52

Merged
thced merged 1 commit into
masterfrom
feat/graceful-shutdown
May 12, 2026
Merged

feat: Graceful shutdown via stop(int) and builder shutdownTimeoutSeconds#52
thced merged 1 commit into
masterfrom
feat/graceful-shutdown

Conversation

@thced

@thced thced commented May 12, 2026

Copy link
Copy Markdown
Contributor

OpenApiServer.stop(int delaySeconds) delegates to HttpServer.stop, waiting up to that many seconds for in-flight exchanges to complete. The builder adds shutdownTimeoutSeconds(int) which becomes the timeout used by close() / try-with-resources (default 0 preserves prior behavior). Both reject negative values.

OpenApiServer.stop(int delaySeconds) delegates to HttpServer.stop, waiting
up to that many seconds for in-flight exchanges to complete. The builder
adds shutdownTimeoutSeconds(int) which becomes the timeout used by
close() / try-with-resources (default 0 preserves prior behavior).
Both reject negative values.
@sonarqubecloud

Copy link
Copy Markdown

@thced thced merged commit 7447a0e into master May 12, 2026
4 checks passed
@thced thced deleted the feat/graceful-shutdown branch May 12, 2026 16:04
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