refactor code
This commit is contained in:
parent
a270feec63
commit
4e9ead32aa
|
@ -196,8 +196,8 @@ int32_t taosSendHttpReport(const char* server, uint16_t port, char* pCont, int32
|
|||
uv_loop_t* loop = uv_default_loop();
|
||||
uv_tcp_init(loop, &cli->tcp);
|
||||
// set up timeout to avoid stuck;
|
||||
int32_t fd = taosCreateSocketWithTimeout(5);
|
||||
uv_tcp_open((uv_tcp_t*)&cli->tcp, fd);
|
||||
//int32_t fd = taosCreateSocketWithTimeout(5);
|
||||
//uv_tcp_open((uv_tcp_t*)&cli->tcp, fd);
|
||||
|
||||
int32_t ret = uv_tcp_connect(&cli->conn, &cli->tcp, (const struct sockaddr*)&dest, clientConnCb);
|
||||
if (ret != 0) {
|
||||
|
|
Loading…
Reference in New Issue