Update default wake timeout to 30 seconds, fixed port selection, improved idlewatcher

This commit is contained in:
yusing
2024-09-25 05:27:12 +08:00
parent dc3575c8fd
commit d10d0e49fa
14 changed files with 103 additions and 70 deletions

View File

@@ -78,8 +78,8 @@ func Register(entry *P.ReverseProxyEntry) (*watcher, E.NestedError) {
ReverseProxyEntry: entry,
client: client,
refCount: &sync.WaitGroup{},
wakeCh: make(chan struct{}, 1),
wakeDone: make(chan E.NestedError, 1),
wakeCh: make(chan struct{}),
wakeDone: make(chan E.NestedError),
l: logger.WithField("container", entry.ContainerName),
}
w.refCount.Add(1)