Skip to content

Commit bb913b9

Browse files
committed
fixed:timeout value is incorrect for info report
1 parent 69f33de commit bb913b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

XEngine_Source/StorageModule_InfoReport/InfoReport_APIMachine/InfoReport_APIMachine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool CInfoReport_APIMachine::InfoReport_APIMachine_Send(LPCXSTR lpszAPIUrl)
8080
st_JsonBuilder["emitUTF8"] = true;
8181

8282
XCHAR* ptszMsgBuffer = NULL;
83-
st_HTTPParam.nTimeConnect = 2;
83+
st_HTTPParam.nTimeConnect = 2000;
8484
if (!APIClient_Http_Request(_X("POST"), tszAPIUrl, Json::writeString(st_JsonBuilder, st_JsonRoot).c_str(), &nCode, &ptszMsgBuffer, &nLen, NULL, NULL, &st_HTTPParam))
8585
{
8686
InfoReport_IsErrorOccur = true;
@@ -154,7 +154,7 @@ bool CInfoReport_APIMachine::InfoReport_APIMachine_GetTime(LPCXSTR lpszAPIUrl, _
154154
st_JsonBuilder["emitUTF8"] = true;
155155

156156
XCHAR* ptszMsgBuffer = NULL;
157-
st_HTTPParam.nTimeConnect = 2;
157+
st_HTTPParam.nTimeConnect = 2000;
158158
if (!APIClient_Http_Request(_X("POST"), tszAPIUrl, Json::writeString(st_JsonBuilder, st_JsonRoot).c_str(), &nCode, &ptszMsgBuffer, &nLen, NULL, NULL, &st_HTTPParam))
159159
{
160160
InfoReport_IsErrorOccur = true;

0 commit comments

Comments
 (0)