From 2bd38f453cd78c3117f16248066c4d1496933dca Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 20 Feb 2023 19:13:29 +0800 Subject: [PATCH] fix: fix invalid read-write --- source/libs/transport/src/transCli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 0ede6f9b2d..65e16eb618 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -1094,7 +1094,7 @@ static void cliSendBatchCb(uv_write_t* req, int status) { } else { tDebug("%s conn %p succ to send batch msg, batch size:%d, msgLen:%d", CONN_GET_INST_LABEL(conn), conn, p->wLen, p->batchSize); - if (conn->broken != true) { + if (!uv_is_closing((uv_handle_t*)&conn->stream)) { if (nxtBatch != NULL) { conn->pBatch = nxtBatch; cliSendBatch(conn); -- GitLab