From d80925d34374ba1e88ec9f62beea243b8c60903f Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 13 Dec 2018 15:24:11 +0800 Subject: [PATCH] - set showapi read timeout to 6 seconds. --- platformapi/showapi/normalRequest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/showapi/normalRequest.go b/platformapi/showapi/normalRequest.go index de96c55d..b5b60fdb 100755 --- a/platformapi/showapi/normalRequest.go +++ b/platformapi/showapi/normalRequest.go @@ -25,7 +25,7 @@ func ShowapiRequest(reqUrl string, appid int, sign string) *NormalReq { values := make(url.Values) values.Set("showapi_appid", strconv.Itoa(appid)) values.Set("showapi_sign", sign) - return &NormalReq{reqUrl, values, make(map[string]string), 3 * time.Second, 15 * time.Second, make(url.Values)} + return &NormalReq{reqUrl, values, make(map[string]string), 6 * time.Second, 15 * time.Second, make(url.Values)} } //通用请求