change http timeout
This commit is contained in:
parent
a80fd8b02e
commit
b6a7c19f5e
|
@ -399,7 +399,7 @@ static void httpHandleReq(SHttpMsg* msg) {
|
||||||
uv_tcp_init(http->loop, &cli->tcp);
|
uv_tcp_init(http->loop, &cli->tcp);
|
||||||
|
|
||||||
// set up timeout to avoid stuck;
|
// set up timeout to avoid stuck;
|
||||||
int32_t fd = taosCreateSocketWithTimeout(5);
|
int32_t fd = taosCreateSocketWithTimeout(5 * 1000);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
tError("http-report failed to open socket, dst:%s:%d", cli->addr, cli->port);
|
tError("http-report failed to open socket, dst:%s:%d", cli->addr, cli->port);
|
||||||
taosReleaseRef(httpRefMgt, httpRef);
|
taosReleaseRef(httpRefMgt, httpRef);
|
||||||
|
|
Loading…
Reference in New Issue