diff --git a/src/kit/shell/src/shellLinux.c b/src/kit/shell/src/shellLinux.c index a78590aab8351451585204e0540998082a54a9a7..fb9de558956795513f954119cdb404b116e1c49d 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 7d1076abbf1eb0c35385b769bfc6a88cfd8a21a7..2094c3d4be59c5636c6f987a790c163bd61c2227 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;