Merge pull request #4398 from philips/fix-socket-activation

fix(api): serve until the "acceptconnections" job
This commit is contained in:
Victor Vieux 2014-03-03 10:19:51 -08:00
commit 690fb50beb

View file

@ -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 {