mirror of
https://github.com/kataras/iris.git
synced 2026-01-20 10:26:01 +00:00
:)
This commit is contained in:
@@ -41,7 +41,7 @@ func ProxyHandler(target *url.URL) *httputil.ReverseProxy {
|
||||
|
||||
if netutil.IsLoopbackHost(target.Host) {
|
||||
transport := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // lint:ignore
|
||||
}
|
||||
p.Transport = transport
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ func (m myTestTask) OnServe(host TaskHost) {
|
||||
if rans == exitAfterXRestarts {
|
||||
m.logger.Println("exit")
|
||||
ctx, cancel := context.WithTimeout(context.TODO(), 5*time.Second)
|
||||
defer cancel()
|
||||
_ = host.Supervisor.Shutdown(ctx) // total shutdown
|
||||
host.Supervisor.RestoreFlow() // free to exit (if shutdown)
|
||||
cancel()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user