Browse Source

close idle connections after stopping http checks to service

pull/691/head
artushin 10 years ago
parent
commit
5ec92971ac
  1. 1
      command/agent/check.go

1
command/agent/check.go

@ -325,6 +325,7 @@ func (c *CheckHTTP) run() {
c.check()
next = time.After(c.Interval)
case <-c.stopCh:
c.httpClient.Transport.(*http.Transport).CloseIdleConnections()
return
}
}

Loading…
Cancel
Save