修复utf8编码问题,修改客户端长轮询为60秒
This commit is contained in:
@@ -114,7 +114,7 @@ local function httpPost(path, data)
|
||||
local jsonData = table_to_json(data)
|
||||
local url = httpServer .. path
|
||||
|
||||
-- 使用长轮询,设置超时时间为300秒
|
||||
-- 使用长轮询
|
||||
local response,err = http.post({
|
||||
url = url,
|
||||
body = jsonData,
|
||||
@@ -122,7 +122,7 @@ local function httpPost(path, data)
|
||||
headers = {
|
||||
["Content-Type"] = "application/json"
|
||||
},
|
||||
timeout = 300 -- 300秒超时
|
||||
timeout = 60
|
||||
})
|
||||
|
||||
if not response then
|
||||
|
||||
Reference in New Issue
Block a user