提交 e72797e1 编写于 作者: X xionglei6

add: socket service start ondemand

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 9e2c3bcb
......@@ -63,7 +63,7 @@ void SocketPollInit(int sockFd, const char* serviceName)
INIT_LOGE("Socket poll handler is not enough!");
return;
}
int ret = uv_poll_init_user_defined(uv_default_loop(), &g_socketPollHandler[handlerCounter], sockFd);
int ret = uv_poll_init_with_block_socket(uv_default_loop(), &g_socketPollHandler[handlerCounter], sockFd);
if (ret != 0) {
INIT_LOGE("Failed to init socket poll!");
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册