Merge pull request #228 from tangle329/master

Fix worker check issue
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-07 09:36:55 -03:00 committed by GitHub
commit 4eb527d4a9

View file

@ -132,10 +132,10 @@ NGINX master process died (%v): %v
// we wait until the workers are killed
for {
conn, err := net.DialTimeout("tcp", "127.0.0.1:80", 1*time.Second)
if err == nil {
conn.Close()
if err != nil {
break
}
conn.Close()
time.Sleep(1 * time.Second)
}
// start a new nginx master process