From b6a7c19f5edee344f3dad0deb38e25e9ddf75fd4 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 23 Nov 2023 15:51:22 +0800 Subject: [PATCH] change http timeout --- source/libs/transport/src/thttp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/transport/src/thttp.c b/source/libs/transport/src/thttp.c index 65b0058cfe..2723a11709 100644 --- a/source/libs/transport/src/thttp.c +++ b/source/libs/transport/src/thttp.c @@ -399,7 +399,7 @@ static void httpHandleReq(SHttpMsg* msg) { uv_tcp_init(http->loop, &cli->tcp); // set up timeout to avoid stuck; - int32_t fd = taosCreateSocketWithTimeout(5); + int32_t fd = taosCreateSocketWithTimeout(5 * 1000); if (fd < 0) { tError("http-report failed to open socket, dst:%s:%d", cli->addr, cli->port); taosReleaseRef(httpRefMgt, httpRef);