提交 66322311 编写于 作者: dengyihao's avatar dengyihao

fix: limit session num

上级 22b1bc10
...@@ -302,7 +302,7 @@ static int32_t taosSendHttpReportImpl(const char* server, const char* uri, uint1 ...@@ -302,7 +302,7 @@ static int32_t taosSendHttpReportImpl(const char* server, const char* uri, uint1
SHttpMsg* msg = taosMemoryMalloc(sizeof(SHttpMsg)); SHttpMsg* msg = taosMemoryMalloc(sizeof(SHttpMsg));
msg->server = taosStrdup(server); msg->server = taosStrdup(server);
msg->uri = taosStrdup(uri); msg->uri = taosStrdup(uri);
msg->port = port; msg->port = port;
msg->cont = taosMemoryMalloc(contLen); msg->cont = taosMemoryMalloc(contLen);
memcpy(msg->cont, pCont, contLen); memcpy(msg->cont, pCont, contLen);
...@@ -447,7 +447,7 @@ static void transHttpEnvInit() { ...@@ -447,7 +447,7 @@ static void transHttpEnvInit() {
void transHttpEnvDestroy() { void transHttpEnvDestroy() {
// remove http // remove http
if (httpRef == -1 || transHttpInit == PTHREAD_ONCE_INIT) { if (httpRef == -1) {
return; return;
} }
SHttpModule* load = taosAcquireRef(httpRefMgt, httpRef); SHttpModule* load = taosAcquireRef(httpRefMgt, httpRef);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册