mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2025-01-03 05:22:26 +08:00
fix tc_epoller crash & update changelist
This commit is contained in:
parent
fad81c26e2
commit
4b9042c3d6
@ -1,3 +1,19 @@
|
|||||||
|
# v3.0.4 20220225
|
||||||
|
|
||||||
|
### en
|
||||||
|
|
||||||
|
- support tarscpp server run container
|
||||||
|
- Fix memory leak caused by timer
|
||||||
|
- Fix crash caused by transceiver in case of connection timeout
|
||||||
|
- FIx crash caused by epoller
|
||||||
|
|
||||||
|
### cn
|
||||||
|
|
||||||
|
- 支持框架容器化运行
|
||||||
|
- 修复定时器带来的内存泄露
|
||||||
|
- 修复 tc_transceiver 在连接超时情况下可能带来的 crash
|
||||||
|
- 修复 tc_epoller 可能带来的 crash
|
||||||
|
|
||||||
# v3.0.4 20220118
|
# v3.0.4 20220118
|
||||||
|
|
||||||
### en
|
### en
|
||||||
|
@ -302,6 +302,12 @@ void TC_Epoller::create(int size, bool createNotify)
|
|||||||
|
|
||||||
void TC_Epoller::close()
|
void TC_Epoller::close()
|
||||||
{
|
{
|
||||||
|
if(_notify != nullptr)
|
||||||
|
{
|
||||||
|
delete _notify;
|
||||||
|
_notify = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
#if TARGET_PLATFORM_LINUX || TARGET_PLATFORM_IOS
|
#if TARGET_PLATFORM_LINUX || TARGET_PLATFORM_IOS
|
||||||
::close(_iEpollfd);
|
::close(_iEpollfd);
|
||||||
_iEpollfd = -1;
|
_iEpollfd = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user