From 03ea7bccee3949105c71e0416abf23327fca04c4 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Fri, 5 Jun 2020 08:28:04 +0000 Subject: [PATCH] [TD-524] fix python connector and rpc maxconns --- src/common/src/tglobal.c | 4 ++-- src/connector/python/linux/python3/taos/cinterface.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 673ba2a6f5..f536d8d65b 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -112,7 +112,7 @@ int32_t tsMaxShellConns = 5000; char tsDefaultDB[TSDB_DB_NAME_LEN] = {0}; char tsDefaultUser[64] = "root"; char tsDefaultPass[64] = "taosdata"; -int32_t tsMaxConnections = 50; +int32_t tsMaxConnections = 5000; int32_t tsBalanceInterval = 300; // seconds int32_t tsOfflineThreshold = 86400*100; // seconds 10days @@ -840,7 +840,7 @@ static void doInitGlobalConfig() { cfg.valType = TAOS_CFG_VTYPE_INT32; cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG | TSDB_CFG_CTYPE_B_SHOW; cfg.minValue = 1; - cfg.maxValue = 100; + cfg.maxValue = 100000; cfg.ptrLength = 0; cfg.unitType = TAOS_CFG_UTYPE_NONE; taosInitConfigOption(cfg); diff --git a/src/connector/python/linux/python3/taos/cinterface.py b/src/connector/python/linux/python3/taos/cinterface.py index 87540bf326..be0226447d 100644 --- a/src/connector/python/linux/python3/taos/cinterface.py +++ b/src/connector/python/linux/python3/taos/cinterface.py @@ -150,6 +150,7 @@ class CTaosInterface(object): libtaos.taos_fetch_lengths.restype = ctypes.c_void_p libtaos.taos_free_result.restype = None libtaos.taos_errno.restype = ctypes.c_int + libtaos.taos_query.restype = ctypes.POINTER(ctypes.c_void_p) def __init__(self, config=None): ''' -- GitLab