Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00
forgejo/modules/graceful
JonRB cb37c6ba5c
call builtinUnused() if internal SSH is disabled (#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
2022-08-20 22:09:41 +01:00
..
context.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
manager.go Add pprof labels in processes and for lifecycles (#19202) 2022-03-25 12:47:12 +00:00
manager_unix.go Fix signal loop in graceful manager (#19943) 2022-06-12 21:50:18 +08:00
manager_windows.go call builtinUnused() if internal SSH is disabled (#20877) 2022-08-20 22:09:41 +01:00
net_unix.go Preserve unix socket file (#20499) 2022-08-13 22:31:33 +01:00
net_windows.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
restart_unix.go Preserve unix socket file (#20499) 2022-08-13 22:31:33 +01:00
server.go Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00
server_hooks.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 2019-12-15 09:51:28 +00:00
server_http.go Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00