Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
44367a00
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
44367a00
编写于
3月 07, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-13760]<fix>: libuv replace socket error.
上级
3588761c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
9 addition
and
31 deletion
+9
-31
include/libs/transport/thttp.h
include/libs/transport/thttp.h
+0
-0
include/os/osSocket.h
include/os/osSocket.h
+0
-8
source/libs/catalog/test/CMakeLists.txt
source/libs/catalog/test/CMakeLists.txt
+4
-4
source/libs/monitor/CMakeLists.txt
source/libs/monitor/CMakeLists.txt
+2
-1
source/libs/transport/src/thttp.c
source/libs/transport/src/thttp.c
+3
-5
source/os/src/osSocket.c
source/os/src/osSocket.c
+0
-6
source/util/CMakeLists.txt
source/util/CMakeLists.txt
+0
-7
未找到文件。
include/
util
/thttp.h
→
include/
libs/transport
/thttp.h
浏览文件 @
44367a00
文件已移动
include/os/osSocket.h
浏览文件 @
44367a00
...
...
@@ -34,16 +34,10 @@
#include <sys/epoll.h>
#endif
#ifdef USE_UV
#include <uv.h>
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef USE_UV
#define TAOS_EPOLL_WAIT_TIME 500
typedef
int32_t
SOCKET
;
typedef
SOCKET
EpollFd
;
...
...
@@ -92,8 +86,6 @@ SOCKET taosOpenTcpClientSocket(uint32_t ip, uint16_t port, uint32_t localIp);
SOCKET
taosOpenTcpServerSocket
(
uint32_t
ip
,
uint16_t
port
);
int32_t
taosKeepTcpAlive
(
SOCKET
sockFd
);
#endif
void
taosBlockSIGPIPE
();
uint32_t
taosGetIpv4FromFqdn
(
const
char
*
);
int32_t
taosGetFqdn
(
char
*
);
...
...
source/libs/catalog/test/CMakeLists.txt
浏览文件 @
44367a00
...
...
@@ -17,7 +17,7 @@ TARGET_INCLUDE_DIRECTORIES(
PRIVATE
"
${
CMAKE_SOURCE_DIR
}
/source/libs/catalog/inc"
)
add_test
(
NAME catalogTest
COMMAND catalogTest
)
#
add_test(
#
NAME catalogTest
#
COMMAND catalogTest
#
)
source/libs/monitor/CMakeLists.txt
浏览文件 @
44367a00
...
...
@@ -3,10 +3,11 @@ add_library(monitor STATIC ${MONITOR_SRC})
target_include_directories
(
monitor
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/libs/monitor"
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/libs/transport"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
monitor os util common
)
target_link_libraries
(
monitor os util common
transport
)
if
(
${
BUILD_TEST
}
)
add_subdirectory
(
test
)
...
...
source/
util
/src/thttp.c
→
source/
libs/transport
/src/thttp.c
浏览文件 @
44367a00
...
...
@@ -111,18 +111,16 @@ _OVER:
}
#ifdef USE_UV
#include <uv.h>
static
void
clientConnCb
(
uv_connect_t
*
req
,
int32_t
status
)
{
if
(
status
<
0
)
{
terrno
=
TAOS_SYSTEM_ERROR
(
status
);
uError
(
"Connection error %s
\n
"
,
uv_strerror
(
status
));
uv_close
((
uv_handle_t
*
)
req
->
handle
,
NULL
);
return
;
}
// impl later
uv_buf_t
*
wb
=
req
->
data
;
if
(
wb
==
NULL
)
{
uv_close
((
uv_handle_t
*
)
req
->
handle
,
NULL
);
}
assert
(
wb
!=
NULL
);
uv_write_t
write_req
;
uv_write
(
&
write_req
,
req
->
handle
,
wb
,
2
,
NULL
);
uv_close
((
uv_handle_t
*
)
req
->
handle
,
NULL
);
...
...
source/os/src/osSocket.c
浏览文件 @
44367a00
...
...
@@ -34,8 +34,6 @@
#include <unistd.h>
#endif
#ifndef USE_UV
// typedef struct TdSocketServer {
// #if SOCKET_WITH_LOCK
// pthread_rwlock_t rwlock;
...
...
@@ -686,10 +684,6 @@ int64_t taosCopyFds(SOCKET sfd, int32_t dfd, int64_t len) {
return
len
;
}
#endif
void
taosBlockSIGPIPE
()
{
#if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32)
#else
...
...
source/util/CMakeLists.txt
浏览文件 @
44367a00
...
...
@@ -12,13 +12,6 @@ target_link_libraries(
PUBLIC lz4_static
PUBLIC api cjson zlib
)
if
(
${
BUILD_WITH_UV
}
)
target_link_libraries
(
util
PUBLIC uv_a
)
add_definitions
(
-DUSE_UV
)
endif
(
${
BUILD_TEST
}
)
if
(
${
BUILD_TEST
}
)
ADD_SUBDIRECTORY
(
test
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录