Merge pull request #4398 from philips/fix-socket-activation
fix(api): serve until the "acceptconnections" job
This commit is contained in:
commit
690fb50beb
1 changed files with 5 additions and 0 deletions
|
@ -1079,6 +1079,11 @@ func ServeFd(addr string, handle http.Handler) error {
|
|||
|
||||
chErrors := make(chan error, len(ls))
|
||||
|
||||
// We don't want to start serving on these sockets until the
|
||||
// "initserver" job has completed. Otherwise required handlers
|
||||
// won't be ready.
|
||||
<-activationLock
|
||||
|
||||
// Since ListenFD will return one or more sockets we have
|
||||
// to create a go func to spawn off multiple serves
|
||||
for i := range ls {
|
||||
|
|
Loading…
Add table
Reference in a new issue