• Matthew Holt's avatar
    Fixed racy error reporting at server startup · 2fb4810c
    Matthew Holt authored
    Previously, if a listener fails to bind (for example), there was a race in caddy.go between unblocking the startup waitgroup and returning the error and putting it into errChan. Now, an error is returned directly into errChan and the closing of the startup waitgroup is defered until after that return takes place.
    2fb4810c
server.go 13.4 KB