Commit ea7b9c02 added a hack (ref) to wait a brief moment to see if listenAndServe returns an error. But commit 70126177 broke it, by reassigning err (ref) in between err = <-errChan and return server, err.
listenAndServe
err
err = <-errChan
return server, err