Skip to content

Releases: TarsCloud/TarsCpp

# v2.4.19 2021.05.18

19 Aug 07:44
Compare
Choose a tag to compare

v2.4.19 2021.05.18

en

  • fix TARS_OPENTARCKING not report trace bug
  • update mysql-client to support cmake 3.20
  • fix doc README.md 404

cn

  • 修复打开TARS_OPENTARCKING宏时,没有上报trace信息的问题
  • update mysql-client to support cmake 3.20
  • fix doc README.md 404

## v2.4.18 2021.04.13

19 Aug 07:43
Compare
Choose a tag to compare

v2.4.18 2021.04.13

en

  • fix tc_thread_queue,Optimizing the swarm effect
  • fix epoll server connection close cause crash bug

cn

  • 修复tc_thread_queue 优化惊群效应
  • 修复epoll server 连接关闭时可能带来的crash

v2.4.17 2021.04.02

19 Aug 07:43
Compare
Choose a tag to compare

v2.4.17 2021.04.02

en

  • fix tc_time bug of erase caused by timer repeat event
  • Fix the MySQL client library to solve the problem of compiling under cmake3.20
  • Fix tc_config, key has no escaped bug
  • Fix the scheduling mechanism to avoid the problem of 1 s scheduling delay

cn

  • 修复tc_timer repeat事件带来的无法erase的问题
  • 修复引用的mysql-client库, 解决cmake3.20下编译的问题
  • 修复tc_config key没有转义的bug
  • 修复协程调度机制, 避免出现总是出现1s调度延时的问题

# v2.4.16 2021.03.28

19 Aug 07:42
Compare
Choose a tag to compare

v2.4.16 2021.03.28

en

  • tc_epoll_server add sendBufferDirect
  • tc_epoll_server fd auto closed when forked
  • fix tc_common time zone bug
  • fix hash call bug
  • fix EndpoingManager.cpp add missing break
  • Fix bug that Popen fails to return null pointer and uses it directly without judgment.
  • fix to avoid coredump while application exit
  • fix hash table and consistent hash ring are not updated when service node weight is updated
  • fix crash When the number of processing pressure test connections is greater than the maximum number of service connections, and the connections are established and disconnected frequently
  • fix In Linux and windows, it is a small end. It corrects the definition error of byte order conversion function, such as tars_ ntonll
  • set timeout options to prevent "connnect", "real_query" to be blocked for tens of minutes
  • Fix the function name (tc_bitmap) in the exception
  • update protocol

cn

  • tc_epoll_server 添加 sendBufferDirect
  • tc_epoll_server fd添加fork后自动close属性
  • 修复 tc_common 中时区函数的时区的bug
  • 修复hash第一次建立连接不稳定的bug
  • 修复EndpoingManager.cpp 缺少 missing break的bug
  • 修复服务退出时可能的crash
  • 修复 popen 失败返回空指针 没有判断就直接使用的BUG。
  • 修复解决服务节点权重更新时哈希表和一致性哈希环不更新的问题
  • 修复同一服务有多个obj的情况,同一hash值调用不同的obj会hash到不同的服务器,因为addNode会根据desc(ip+port)计算md5,导致顺序不一致
  • 修复处理压测连接数大于服务最大连接数,并且有连接频繁建立、断开时
  • 修复windows下大小端的问题
  • mysql 增加超时的参数设置
  • 修复tc_bitmap异常字符串处理的bug
  • 更新protocol引用

v2.4.15

31 Dec 06:44
Compare
Choose a tag to compare

v2.4.15 2020.12.30

en

  • fix tc_consistent_hash_new.cpp hash bug
  • add ONLY_LIB, not build examples/servers by default, if you want build examples, please cmake .. -DONLY_LIB=OFF && make -j4
  • change format of some files to UTF-8 BOM to fix compile errors under windows without changing any codes in these files.
  • fix tc_common prime judgment bug
  • fix tars-tools.cmake link pthread bug in ubuntu

cn

  • 修改tc_consistent_hash_new.cpp hash的bug
  • 添加ONLY_LIB编译选项, 默认不再编译examples服务, 如果有需要请: cmake .. -DONLY_LIB=OFF && make -j4
  • 修改部分文件的utf8格式, 避免windows下的编译错误
  • 修改tc_common prime judgment bug
  • 修改ubuntu下, tars-tools.cmake link pthread bug

v2.4.14

19 Aug 07:44
Compare
Choose a tag to compare

v2.4.14 2020.11.09

en

  • fix TC_Shm::init windows not set _bOwner
  • cmake copy .tars to tarsproto/protocol in windows
  • epoll add/del/mod and return value
  • ServantProxyThreadData reset when communicator terminate
  • get rid of the singleton. You can start multiple applications in a process!
  • when epoll server exit, close all fd.
  • fix EndpointManager decontructor
  • fix communicator terminate
  • application support parse string config
  • fix hash bug in first connection
  • fix tc_sha, __LITTLE_ENDIAN bug in windows/mac
  • hello server add hash test
  • fix compiler warning
  • tc_shm when detach, set _pshm = NULL

cn

  • 修改 TC_Shm::init in windows 没有设置 _bOwner变量的bug
  • 修改tars-tools.cmake, 在windows 平台下cmake 复制 .tars 到 tarsproto/protocol
  • epoll add/del/mod 等接口增加返回值
  • communicator 结束时调用ServantProxyThreadData reset
  • 尽量去掉libservant中的单例, 这样在一个进程中可以启动多个Application
  • 当epoll server退出时, 关闭所有的句柄
  • 修复EndpointManager析构函数
  • 修改communicator结束时可能的crash
  • Application内部增加直接初始化函数, 支持string类型的配置
  • 修改第一次创建连接时hash不准的bug
  • 修复windows/mac平台上, tc_sha, __LITTLE_ENDIAN不支持的bug
  • Hello server增加hash测试
  • 修复编译警告
  • tc_shm当调用detach时, 设置_pshm = NULL

v2.4.13

09 Nov 07:32
Compare
Choose a tag to compare

en

  • Fix Windows compilation errors (missing bison / flex generated files)
  • Network epoll notification handle is changed to UDP handle instead of socket pipe mode to save the number of handles
  • Fix tars-tools.cmake support mysql link

cn

  • 修复windows编译错误(漏提交bison/flex生成的文件)
  • 网络epoll通知句柄改成udp句柄, 不采用socket pipe模式, 节省句柄数量
  • 修复tars-tools.cmake 支持mysql的link

v2.4.12

09 Nov 07:32
Compare
Choose a tag to compare

v2.4.12 2020.09.23

en

  • tc_timer fix compiler warning
  • fix dye bug
  • fix http keep-alive bug

cn

  • tc_timer修复编译警告
  • 修复染色的bug
  • 修复http keep-alive bug

v2.4.11

19 Sep 09:28
Compare
Choose a tag to compare

v2.4.11 2020.09.18

en

  • fix gtest compiler bug
  • fix epoll memory leak in windows
  • fix tc_encoder crash bug
  • fix tc_clientsocket bug
  • fix tc_timer memory leak
  • fix tc_openssl mode not be used
  • fix TC_ Http2 failure problem (header cannot use temporary variables)
  • always set thread data host info
  • Adding the initialization of enumeration value in the resetDefautlt function
  • Part of the file encoding format is adjusted to utf8 BOM to ensure that there is no problem in Windows compilation
  • tc_common add various date processing functions
  • tc_common add floating point comparison function
  • tc_thread add multi thread hash logic
  • tc_port add environment variable acquisition and system event registration callback (compatible with multi platform)
  • Adjust tc_sem_mutex event name (under Windows) to facilitate subsequent maintenance
  • rpc add support for http/sock4/sock5 proxy
  • application add ssl bind check
  • Fix the bug of RPC in HTTP short SSL package connection (under Windows)
  • communicator add update endpoint
  • fix communicator exit logic to avoid possible crash in exit
  • optimize the memory copy problem, reduce the memory copy, and improve the performance
  • Adjust the custom callback and put it in servantproxy

cn

  • 修复gtest编译错误
  • 修复windows下, epoll.cpp中的内存泄露
  • 修改tc_encoder crash 的bug
  • 修复tc_clientsocket在大包下的bug
  • 修复tc_timer内存泄露问题
  • 修复tc_openssl 代码中mode没生效的bug
  • 修复rpc在http短连接以及ssl大包下的bug(windows下)
  • 修复tc_http2 失败的问题(header不能用临时变量)
  • ServantProxy调用时总是在线程私有变量中设置host info
  • 在resetDefautlt函数中增加枚举值的初始化
  • 部分文件编码格式调整成utf8 bom
  • tc_common增加各类时间处理函数
  • tc_common增加浮点数比较算法
  • tc_thread增加多线程hash逻辑
  • tc_port增加环境变量获取以及系统事件注册回调(兼容多平台)
  • 调整tc_sem_mutex事件名称(windows下), 便于后续维护
  • rpc增加http/sock4/sock5支持
  • application 增加ssl效验
  • communicator增加主动更新endpoint的功能
  • communicator完善退出逻辑, 避免退出时可能的crash
  • 进一步优化内存copy问题, 减少内存copy,提升性能
  • 调整自定义回调, 放在ServantProxy中

v2.4.10 20200902

19 Sep 09:27
Compare
Choose a tag to compare

en

  • fix ssl EndpointManager.cpp bug
  • gbk2utf8 mode default set to ICONV_IGNORE

cn

  • 修复ssl下, EndpointManager.cpp 的bug
  • 将gbk2utf8 mode 缺省值设置为ICONV_IGNORE