You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/graceful
JonRB eee51d8366
Ensure that graceful start-up is informed of unused SSH listener (#20877)
The graceful manager waits for 4 listeners to be created or to be told that they are not needed. If it is not told about them it will indefinitely and timeout. 

This leads to SVC hosts not being told of being in the readyState but on Unix would lead to the termination of the process.

There was an unfortunate regression in #20299 which missed this subtly and in the case whereby SSH is disabled the `builtinUnused()` is not called.

This PR adds a call to `builtinUnused()` when not using the builtin ssh to allow `createServerWaitGroup.Done()` to be called. 

In addition it was noted that the if/else clauses for timeout informing of the SVC host were in the wrong order. These have been swapped.

Fix #20609
3 years ago
..
context.go Multiple Queue improvements: LevelDB Wait on empty, shutdown empty shadow level queue, reduce goroutines etc (#15693) 4 years ago
manager.go Add pprof labels in processes and for lifecycles (#19202) 3 years ago
manager_unix.go Fix signal loop in graceful manager (#19943) 3 years ago
manager_windows.go Ensure that graceful start-up is informed of unused SSH listener (#20877) 3 years ago
net_unix.go Remove legacy `+build:` constraint (#19582) 3 years ago
net_windows.go Remove legacy `+build:` constraint (#19582) 3 years ago
restart_unix.go Remove legacy `+build:` constraint (#19582) 3 years ago
server.go Make SSL cipher suite configurable (#17440) 3 years ago
server_hooks.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
server_http.go Make SSL cipher suite configurable (#17440) 3 years ago