change http timeout

This commit is contained in:
yihaoDeng 2023-11-23 15:51:22 +08:00
parent a80fd8b02e
commit b6a7c19f5e
1 changed files with 1 additions and 1 deletions

View File

@ -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);