mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-15 00:50:25 +02:00
all: fix os resolver hangs when all server failed
For os resolver, ctrld queries against all servers concurrently, and get the first success result back. However, if all server failed, the result channel is not closed, causing ctrld hang. Fixing this by closing the result channel once getting back all response from servers. While at it, also shorten the backoff time when waiting for network up, ctrld should serve as fast as possible after network is available. Updates #34
This commit is contained in:
committed by
Cuong Manh Le
parent
b3a342bc44
commit
ba48ff5965
+1
-2
@@ -160,8 +160,7 @@ func initCLI() {
|
||||
log.Fatalf("failed to unmarshal config: %v", err)
|
||||
}
|
||||
|
||||
log.Println("starting ctrld ...")
|
||||
log.Printf("version: %s\n", curVersion())
|
||||
log.Printf("starting ctrld %s\n", curVersion())
|
||||
oi := osinfo.New()
|
||||
log.Printf("os: %s\n", oi.String())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user