Skip to content

Conversation

bmizerany
Copy link

@bmizerany bmizerany commented Sep 4, 2025

Shutdown is now idempotent: it does nothing if the server
was never started or was already stopped.

Listen is guarded by sync.Once so the HTTP server can be
started at most once.

Fixes #667

Shutdown is now idempotent: it does nothing if the server
was never started or was already stopped.

Listen is guarded by sync.Once so the HTTP server can be
started at most once.

Fixes Shopify#667
@bmizerany bmizerany force-pushed the bmizerany/listenshutdownrace branch from f388dff to b9e0c9d Compare September 4, 2025 00:21
@bmizerany bmizerany force-pushed the bmizerany/listenshutdownrace branch 2 times, most recently from 797e5e1 to b9e0c9d Compare September 4, 2025 03:16
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.

cmd/server: SIGINT during initialization can cause a data race in ApiServer
1 participant