mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-27 04:07:28 +00:00
Fix goroutine leak in Run
D'oh, the servers' Shutdown() would never be called because they were never added to the list of servers. Thanks Danny for finding this.
This commit is contained in:
parent
a8dc73b4d9
commit
27ff6aeccb
4 changed files with 7 additions and 6 deletions
|
|
@ -49,6 +49,7 @@ func (hc *httpModuleConfig) Run() error {
|
|||
return fmt.Errorf("%s: listening on %s: %v", proto, addr, err)
|
||||
}
|
||||
go s.Serve(ln)
|
||||
hc.servers = append(hc.servers, s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue