-
-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential race condition in boulder-ca shutdown (#5277)
`cai.Stop()` called from boulder-ca could potentially exit before errors emitted by `caSrv` and `ocspSrv` are logged. This could lead to boulder-ca erroneously exiting `0` instead of `1`. Add a `sync.WaitGroup`. Increment the waitgroup before `caSrv.Serve()` and `ocspSrv.Serv()` are spun off. Await the waitgroup before `cai.Stop()` is called. Fixes #5246
- Loading branch information
1 parent
1e11833
commit b306060
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters