Skip to content

Commit 00ada23

Browse files
committed
x 2022-10-06
1 parent aaf4b50 commit 00ada23

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/util/sv2es.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ func SendReq(data1 interface{}, id string, szType ESaveType) {
9494
"Content-Type": "application/json;charset=UTF-8",
9595
}
9696
c1 := GetClient(szUrl, map[string]interface{}{"UseHttp2": true})
97+
c1.ErrLimit = 10000
98+
c1.ErrCount = 0
99+
c1.UseHttp2 = true
97100
data, _ := json.Marshal(data1)
98101
c1.DoGetWithClient4SetHd(c1.GetClient4Http2(), szUrl, "POST", bytes.NewReader(data), func(resp *http.Response, err error, szU string) {
99102
if nil != err {

lib/util/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func GetClient(szUrl string, pms ...map[string]interface{}) *PipelineHttp.Pipeli
106106
"max_idle_conns_per_host": 50,
107107
"max_conns_per_host": 50,
108108
"max_idle_conns": 50,
109+
"err_limit": 90000,
109110
},
110111
}
111112
}

0 commit comments

Comments
 (0)