未验证 提交 25ddda9c 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #9029 from devinsong/develop

PR for FQDN length check..
......@@ -568,6 +568,12 @@ static void taosNetCheckSpeed(char *host, int32_t port, int32_t pkgLen,
int32_t compressTmp = tsCompressMsgSize;
int32_t maxUdpSize = tsRpcMaxUdpSize;
int32_t forceTcp = tsRpcForceTcp;
//Precheck for FQDN lgenth
if (strlen(host) >= TSDB_FQDN_LEN) {
uError("FQDN length is too long");
return;
}
if (0 == strcmp("tcp", pkgType)){
tsRpcForceTcp = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册