- Notifications
You must be signed in to change notification settings - Fork906
feat(agent/agentcontainers): add file watcher and dirty status#17573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
40c8de9
a997f82
0e568fb
4f788d9
bfeb1da
45a978c
d2721a7
c03bb7d
aed7c30
39526e6
7edee90
9cf5415
de2a42e
0cbee38
5ced7e1
5a96a55
0b16448
eaf5922
617fed2
8ee9914
263c683
58a70e8
9f739ca
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1481,8 +1481,13 @@ func (a *agent) createTailnet( | ||
}() | ||
if err = a.trackGoroutine(func() { | ||
defer apiListener.Close() | ||
apiHandler, closeAPIHAndler := a.apiHandler() | ||
defer func() { | ||
_ = closeAPIHAndler() | ||
}() | ||
server := &http.Server{ | ||
BaseContext: func(net.Listener) context.Context { return ctx }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Review: This change allows all | ||
Handler: apiHandler, | ||
ReadTimeout: 20 * time.Second, | ||
ReadHeaderTimeout: 20 * time.Second, | ||
WriteTimeout: 20 * time.Second, | ||
@@ -1493,6 +1498,7 @@ func (a *agent) createTailnet( | ||
case <-ctx.Done(): | ||
case <-a.hardCtx.Done(): | ||
} | ||
_ = closeAPIHAndler() | ||
_ = server.Close() | ||
mafredri marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
}() | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.