Skip to content

Commit

Permalink
fix after task done ,http client idle connections not close
Browse files Browse the repository at this point in the history
Signed-off-by: ii2day <ji.li@daocloud.io>
  • Loading branch information
ii2day committed Sep 14, 2023
1 parent 885761c commit a4e4ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/loadRequest/loadHttp/http_requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func (b *Work) runWorker() {
select {
case <-b.stopCh:
wg.Wait()
client.CloseIdleConnections()
return
default:
if b.QPS > 0 {
Expand Down

0 comments on commit a4e4ec3

Please sign in to comment.