TarsCpp icon indicating copy to clipboard operation
TarsCpp copied to clipboard

C++ language framework rpc source code implementation

Results 52 TarsCpp issues
Sort by recently updated
recently updated
newest added

原gtest 1.10版本编译不过,切换到1.11版本。from issue https://github.com/TarsCloud/TarsCpp/issues/239

Download curl will hang when building TarsCpp on MSVC and we've had this issue a few times recently, it's an unstable and reproducible issue. I'm not sure if this is...

![image](https://user-images.githubusercontent.com/30905313/172589525-7bacdf0b-91d2-4280-b465-fa7b0721bed7.png) ![image](https://user-images.githubusercontent.com/30905313/172589623-10fda79d-b33c-4436-b08d-0cbc002edb71.png) TC_TimeProvider::getInstance()单例使用后在退出时没有主动释放资源和使用的线程,terminate()函数是protected,无法主动调用,没有渠道手动释放。

![image](https://user-images.githubusercontent.com/53249202/170700482-87a6c345-2884-49c0-9600-11164408ba6f.png) ``` In file included from /root/down/TarsCpp/build/src/gtest-lib/googletest/src/gtest-all.cc:42: /root/down/TarsCpp/build/src/gtest-lib/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’: /root/down/TarsCpp/build/src/gtest-lib/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized] 1301 | StackLowerThanAddress(&dummy, &result); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /root/down/TarsCpp/build/src/gtest-lib/googletest/src/gtest-death-test.cc:1290:13: note: by argument...

![image](https://user-images.githubusercontent.com/46178930/158746623-338975e5-280c-4a9e-a19f-fbdece2f9101.png)

希望把调用链数据收集起来,且能够图形化展示?

在函数 `ServantProxy::invoke` 中,将请求消息msg 放入 pReq 中, 并没有加锁,这里**表面上**看可能会与客户端网络线程产生data race . 但后面有一个 `msg->pObjectProxy->getCommunicatorEpoll()->notify(pSptd->_reqQNo);` 保证了Release 语义; 而客户端网络线程中中的epoll_wait 保证了Acquire 语义. 请问:我理解的对么?

/** * 客户端关闭连接时的处理 * @param current * @return int */ virtual int doClose(CurrentPtr current){ return -1; } Servant内这个函数是客户端主动断线调用的,如果客户端宕机,服务器给客户端推送消息,能否收到RST信号的事件?