From a530af7b810407e93488c2c9a963566bffa0f87a Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Mon, 30 May 2022 22:33:04 +0800 Subject: [PATCH] fix(os): win pipe connect limit error --- include/util/tdef.h | 4 ++++ source/libs/transport/test/CMakeLists.txt | 10 ++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/util/tdef.h b/include/util/tdef.h index ad7206f7bb..7c1f46ce69 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -368,7 +368,11 @@ typedef enum ELogicConditionType { #define PRIMARYKEY_TIMESTAMP_COL_ID 1 #define COL_REACH_END(colId, maxColId) ((colId) > (maxColId)) +#ifdef WINDOWS +#define TSDB_MAX_RPC_THREADS 4 // windows pipe only support 4 connections. +#else #define TSDB_MAX_RPC_THREADS 5 +#endif #define TSDB_QUERY_TYPE_NON_TYPE 0x00u // none type #define TSDB_QUERY_TYPE_FREE_RESOURCE 0x01u // free qhandle at vnode diff --git a/source/libs/transport/test/CMakeLists.txt b/source/libs/transport/test/CMakeLists.txt index 468b70fb71..98a252e008 100644 --- a/source/libs/transport/test/CMakeLists.txt +++ b/source/libs/transport/test/CMakeLists.txt @@ -111,12 +111,10 @@ target_link_libraries (pushServer ) -if(NOT TD_WINDOWS) - add_test( - NAME transUT - COMMAND transUT - ) -endif(NOT TD_WINDOWS) +add_test( + NAME transUT + COMMAND transUT +) add_test( NAME transUtilUt COMMAND transportTest -- GitLab