Skip to content

Commit 15c1120

Browse files
committed
chore: bump agent and updater versions and add idle connection closing to HTTP client.
1 parent 7c9b1d1 commit 15c1120

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

agent/updater/utils/download.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ func DownloadFile(url string, headers map[string]string, fileName string, path s
1818
req.Header.Add(key, value)
1919
}
2020

21-
client := &http.Client{}
22-
client.Transport = &http.Transport{
21+
tr := &http.Transport{
2322
TLSClientConfig: &tls.Config{InsecureSkipVerify: skipTlsVerification},
2423
DisableCompression: true,
2524
}
25+
client := &http.Client{Transport: tr}
26+
defer tr.CloseIdleConnections()
2627

2728
resp, err := client.Do(req)
2829
if err != nil {

agent/version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "11.1.2",
3-
"updater_version": "1.0.1"
2+
"version": "11.1.3",
3+
"updater_version": "1.0.2"
44
}

0 commit comments

Comments
 (0)