From 2068c484ec43d441c4e2e1a3fb93bf5c66d4a124 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Wed, 23 Mar 2022 16:33:45 +0800 Subject: [PATCH] [TD-14259]: taos shell help (#10936) --- src/kit/shell/src/shellLinux.c | 4 ++-- src/util/src/tnettest.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kit/shell/src/shellLinux.c b/src/kit/shell/src/shellLinux.c index a78590aab8..fb9de55895 100644 --- a/src/kit/shell/src/shellLinux.c +++ b/src/kit/shell/src/shellLinux.c @@ -48,10 +48,10 @@ static struct argp_option options[] = { {"check", 'k', "CHECK", 0, "Check tables."}, {"database", 'd', "DATABASE", 0, "Database to use when connecting to the server."}, {"timezone", 'z', "TIMEZONE", 0, "Time zone of the shell, default is local."}, - {"netrole", 'n', "NETROLE", 0, "Net role when network connectivity test, default is startup, options: client|server|rpc|startup|sync|speen|fqdn."}, + {"netrole", 'n', "NETROLE", 0, "Net role when network connectivity test, default is startup, options: client|server|rpc|startup|sync|speed|fqdn."}, {"pktlen", 'l', "PKTLEN", 0, "Packet length used for net test, default is 1000 bytes."}, {"pktnum", 'N', "PKTNUM", 0, "Packet numbers used for net test, default is 100."}, - {"pkttype", 'S', "PKTTYPE", 0, "Packet type used for net test, default is TCP."}, + {"pkttype", 'S', "PKTTYPE", 0, "Choose packet type used for net test, default is TCP. Only speed test could be either TCP or UDP."}, {0}}; static error_t parse_opt(int key, char *arg, struct argp_state *state) { diff --git a/src/util/src/tnettest.c b/src/util/src/tnettest.c index 7d1076abbf..2094c3d4be 100644 --- a/src/util/src/tnettest.c +++ b/src/util/src/tnettest.c @@ -568,7 +568,7 @@ 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"); @@ -615,7 +615,7 @@ static void taosNetCheckSpeed(char *host, int32_t port, int32_t pkgLen, reqMsg.handle = NULL; // rpc handle returned to app reqMsg.ahandle = NULL; // app handle set by client tstrncpy((char*)reqMsg.pCont, "nettest speed", pkgLen); - + rpcSendRecv(pRpcConn, &epSet, &reqMsg, &rspMsg); int code = 0; -- GitLab