Skip to content

Commit aa8ce9f

Browse files
committed
improved:close broadcast
1 parent e25a687 commit aa8ce9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

XEngine_Source/XEngine_StorageApp/StorageApp_Center.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ BOOL XEngine_Task_HttpCenter(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, int
163163
//用于心跳
164164
st_HDRParam.bIsClose = TRUE;
165165
st_HDRParam.nHttpCode = 200;
166-
LPCTSTR lpszHdrBuffer = _T("Allow: POST GET OPTIONS\r\n");
166+
LPCTSTR lpszHdrBuffer = _T("Allow: POST GET PUT OPTIONS\r\n");
167167
RfcComponents_HttpServer_SendMsgEx(xhCenterHttp, tszSDBuffer, &nSDLen, &st_HDRParam, NULL, 0, lpszHdrBuffer);
168168
XEngine_Net_SendMsg(lpszClientAddr, tszSDBuffer, nSDLen, STORAGE_NETTYPE_HTTPCENTER);
169169
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _T("业务客户端:%s,请求OPTIONS心跳方法成功"), lpszClientAddr);

XEngine_Source/XEngine_StorageApp/Storage_APPTask/Storage_TaskManage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ BOOL XEngine_Task_Manage(LPCTSTR lpszAPIName, LPCTSTR lpszClientAddr, LPCTSTR lp
9999
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _T("业务客户端:%s,发送广播请求失败,错误:%lX"), lpszClientAddr, NetCore_GetLastError());
100100
return FALSE;
101101
}
102-
NetCore_BroadCast_Close(hSDSocket);
103102

104103
time_t nTimeStart = time(NULL);
105104
while (1)
@@ -119,6 +118,7 @@ BOOL XEngine_Task_Manage(LPCTSTR lpszAPIName, LPCTSTR lpszClientAddr, LPCTSTR lp
119118
break;
120119
}
121120
}
121+
NetCore_BroadCast_Close(hSDSocket);
122122
NetCore_BroadCast_Close(hRVSocket);
123123

124124
if (stl_ListFile.empty())

0 commit comments

Comments
 (0)