File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,12 @@ const (
24
24
stateTerminate
25
25
)
26
26
27
- // There are three places that could inherit sockets:
27
+ // There are some places that could inherit sockets:
28
28
//
29
29
// * HTTP or HTTPS main listener
30
+ // * HTTP or HTTPS install listener
30
31
// * HTTP redirection fallback
31
- // * SSH
32
+ // * Builtin SSH listener
32
33
//
33
34
// If you add an additional place you must increment this number
34
35
// and add a function to call manager.InformCleanup if it's not going to be used
@@ -305,8 +306,9 @@ func (g *Manager) setState(st state) {
305
306
g .state = st
306
307
}
307
308
308
- // InformCleanup tells the cleanup wait group that we have either taken a listener
309
- // or will not be taking a listener
309
+ // InformCleanup tells the cleanup wait group that we have either taken a listener or will not be taking a listener.
310
+ // At the moment the total number of servers (numberOfServersToCreate) are pre-defined as a const before global init,
311
+ // so this function MUST be called if a server is not used.
310
312
func (g * Manager ) InformCleanup () {
311
313
g .createServerWaitGroup .Done ()
312
314
}
You can’t perform that action at this time.
0 commit comments