mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-01 00:33:43 +00:00
lns get closed by serve, so they're not wanted, but shutdown still hangs
This commit is contained in:
parent
01e90c6565
commit
d9982df3fe
@ -50,7 +50,6 @@ func serveMonitor(c *Consensus, ts *tsnet.Server, listenAddr string) (*http.Serv
|
|||||||
mux.HandleFunc("/dial", m.handleDial)
|
mux.HandleFunc("/dial", m.handleDial)
|
||||||
srv := &http.Server{Handler: mux}
|
srv := &http.Server{Handler: mux}
|
||||||
go func() {
|
go func() {
|
||||||
defer ln.Close()
|
|
||||||
err := srv.Serve(ln)
|
err := srv.Serve(ln)
|
||||||
log.Printf("MonitorHTTP stopped serving with error: %v", err)
|
log.Printf("MonitorHTTP stopped serving with error: %v", err)
|
||||||
}()
|
}()
|
||||||
|
@ -304,7 +304,6 @@ func (c *Consensus) serveCmdHttp(ts *tsnet.Server) (*http.Server, error) {
|
|||||||
mux := c.makeCommandMux()
|
mux := c.makeCommandMux()
|
||||||
srv := &http.Server{Handler: mux}
|
srv := &http.Server{Handler: mux}
|
||||||
go func() {
|
go func() {
|
||||||
defer ln.Close()
|
|
||||||
err := srv.Serve(ln)
|
err := srv.Serve(ln)
|
||||||
log.Printf("CmdHttp stopped serving with err: %v", err)
|
log.Printf("CmdHttp stopped serving with err: %v", err)
|
||||||
}()
|
}()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user