Commit Graph

213 Commits

Author SHA1 Message Date
ruanshudong
2f1df872a3 fix tc_thread_queue,Optimizing the swarm effect 2021-04-13 11:36:46 +08:00
ruanshudong
cc5e547d1b tc_common.cpp code format 2021-04-13 09:42:41 +08:00
ruanshudong
521bc4b44e
Merge pull request #161 from xingyuuchen/master
fix TC_ThreadQueue 可能出现的惊群效应 & terminate退出时阻塞等待不用非得等到超时
2021-04-13 09:22:37 +08:00
ruanshudong
a1dc73f742 fix epoll server connection close cause crash bug 2021-04-12 22:38:07 +08:00
xingyuuchen
6e3444f570 fix TC_ThreadQueue terminate退出时阻塞等待不用非得等到超时 2021-04-02 14:00:19 +08:00
ruanshudong
d79e204d69
Merge pull request #158 from woluohenga/fix_config_parse_bug
fix: fix config parse bug
2021-04-02 09:07:28 +08:00
ruanshudong
e5d549ffa9 update tc_timer repeat bug and update changelist 2021-04-01 21:57:35 +08:00
xingyuuchen
7da75e68c3 fix TC_ThreadQueue中多个线程同时调用condition_variable.wait()等待时可能出现的惊群效应 2021-03-31 11:04:00 +08:00
ruanshudong
ffe1b07c01 fix tc_common time bug in windows 2021-03-29 10:30:36 +08:00
ruanshudong
557a2188db fix protocol 2021-03-28 22:27:52 +08:00
seamesluo
9804f03563 fix: fix config parse bug 2021-03-25 16:58:10 +08:00
tantc
0e50a684e3 linux windows下为小端,修正字节序转换函数定义错误,比如tars_ntonll 2021-03-24 10:40:26 +08:00
ruanshudong
5f1b2b3666 tc_epoll_server add sendBufferDirect
tc_epoll_server support listen fd fork
2021-03-24 10:20:12 +08:00
ruanshudong
e02534af69 fix tc_common time zone bug 2021-03-24 09:39:36 +08:00
tantc
82182839be 处理压测连接数大于服务最大连接数,并且有连接频繁建立、断开时,TC_EpollServer::ConnectionList::getUniqId()中出现assert错误 2021-03-24 09:38:37 +08:00
tantc
ea3f65ef4e 处理压测连接数大于服务最大连接数,并且有连接频繁建立、断开时,TC_EpollServer::ConnectionList::getUniqId()中出现assert错误 2021-03-24 09:38:37 +08:00
tantc
aa62d4db4a linux windows下为小端,修正字节序转换函数定义错误,比如tars_ntonll 2021-03-24 09:38:37 +08:00
ruanshudong
3b8eefe405 merge pr, fix isPrimeNumber 2021-03-04 13:55:40 +08:00
miojizzy
909d7299cc fix tc_common prime judgment bug 2021-03-04 13:55:40 +08:00
ruanshudong
6434f40e84 fix tc_port exec 2021-03-04 13:55:40 +08:00
daihuaming
1c4909903c 修复 popen 失败返回空指针 没有判断就直接使用的BUG。 2021-03-04 13:55:40 +08:00
ruanshudong
d7ec1f3fc2 merge pr, fix isPrimeNumber 2021-03-04 13:55:40 +08:00
miojizzy
98f37a9552 fix tc_common prime judgment bug 2021-03-04 13:55:40 +08:00
tanzhongwu
64ce7ae963 修正异常里的函数名 2021-03-04 13:55:40 +08:00
tanzhongwu
f2acbcb0d4 修正异常里的函数名 2021-03-04 13:55:40 +08:00
wincsb
d7adcb07c1 Set the MYSQL_OPT_CONNECT_TIMEOUT, MYSQL_OPT_READ_TIMEOUT, MYSQL_OPT_WRITE_TIMEOUT options to prevent switching VIP/restarting the gateway after unplugging the network cable, causing "connnect", "real_query", etc. to be blocked for tens of minutes 2021-03-02 11:15:31 +08:00
ruanshudong
43155e55a0 merge pr, fix isPrimeNumber 2020-12-31 09:27:43 +08:00
miojizzy
cb4c397130 fix tc_common prime judgment bug 2020-12-31 09:20:18 +08:00
cachebyte
0e590fdc56 change format of some files to UTF-8 BOM to fix compile errors under windows without changing any codes in these files. 2020-12-10 16:24:26 +08:00
zouchengzhuo
84a15e27ae fix tc_consistent_hash_new.cpp 2020-12-03 07:15:20 +00:00
ruanshudong
b2441a7973 fix tc_port windows compiler error 2020-11-16 13:43:25 +08:00
ruanshudong
0c33d8f1f7 fix windows & mac compiler error 2020-11-16 09:59:12 +08:00
ruanshudong
e06e7d1e4d fix helloserver config bug 2020-11-09 15:34:21 +08:00
ruanshudong
be0cab8d46 epoll add/del/mod and return value 2020-11-09 15:34:21 +08:00
ruanshudong
a2d093aa69 fix windows epoll bug when socket be reused 2020-11-09 15:34:21 +08:00
ruanshudong
4e9169df0a tc_timer startTimer reset _terminate 2020-11-09 15:34:21 +08:00
ruanshudong
5e95c4e577 get rid of the singleton. You can start multiple applications in
a process!
2020-11-09 15:34:21 +08:00
ruanshudong
680d9ff52e when epoll server exit, close all fd. 2020-11-09 15:34:21 +08:00
ruanshudong
a21c4e51a9 fix tc_sha, __LITTLE_ENDIAN bug in windows/mac 2020-11-09 10:43:42 +08:00
Archer
1421a03db8 1. 编译器警告
2. detach后没有设置 _pshm = NULL
2020-10-17 16:32:40 +08:00
Archer
51340d919f 降低using namespace的可见性 2020-10-17 16:13:06 +08:00
Archer
7dee91951e TC_Shm::init windows缺少_bOwner赋值 #132 2020-10-17 16:12:24 +08:00
ruanshudong
824ce13930 Network epoll notification handle is changed to UDP handle instead of
socket pipe mode to save the number of handles
2020-10-11 12:38:44 +08:00
ruanshudong
8a7cd8bfed fix dye bug 2020-09-23 10:25:23 +08:00
ruanshudong
97f7c22e98 fix tc_encoder crash, fix servantproxy get host info crash 2020-09-22 16:55:37 +08:00
ruanshudong
a0182dcbb9 - 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
2020-09-17 21:35:19 +08:00
westonli
db6843c603 解决doRequest时,收不了数据的问题。 2020-09-09 13:48:52 +08:00
ruanshudong
465332a9c9 Merge branch 'release/2.4' 2020-09-05 21:38:53 +08:00
ruanshudong
7a6f1d2d9e Merge commit '152b960' into release/2.4 2020-09-05 21:37:28 +08:00
ruanshudong
152b960e42 fix epoll memory leak in windows 2020-09-05 21:36:46 +08:00