From e10f706c2897178ae932394f3eb93d6ed67f17d6 Mon Sep 17 00:00:00 2001 From: slguan Date: Tue, 10 Sep 2019 09:49:27 +0800 Subject: [PATCH] fix issue #486 --- src/client/src/tscServer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 1f139ea2a5..7f6ad8c551 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -265,7 +265,10 @@ void *tscProcessMsgFromServer(char *msg, void *ahandle, void *thandle) { if (msg == NULL) { tscTrace("%p no response from ip:0x%x", pSql, pSql->ip); - pSql->index++; + + // for single node situation, do NOT try next index + assert(pSql->index == 0); + pSql->thandle = NULL; // todo taos_stop_query() in async model -- GitLab