mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-07 00:43:33 +08:00
add http coon timeout
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"github.com/lzh-1625/go_process_manager/config"
|
||||
"github.com/lzh-1625/go_process_manager/internal/app/model"
|
||||
@@ -36,6 +37,7 @@ func (e *esLogic) InitEs() bool {
|
||||
elastic.SetHttpClient(&http.Client{
|
||||
Transport: &http.Transport{
|
||||
MaxIdleConnsPerHost: config.CF.LogHandlerPoolSize,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
Reference in New Issue
Block a user