Commit Graph

4062 Commits

Author SHA1 Message Date
zhengshuxin
4c41c86bc0 Use setsockopt to set the IO timeout for OpenSSL module. 2024-03-25 17:53:44 +08:00
zhengshuxin
1f7ad7098b Optimize setsockopt for setting IO timeout in fiber. 2024-03-25 17:48:01 +08:00
zhengshuxin
b0082d21bc Reset r_timeout/w_timeout after poll finishing. 2024-03-25 15:17:58 +08:00
zhengshuxin
f7563f1bc1 w_timeout should be set when writing data in iouring mode. 2024-03-25 15:11:34 +08:00
zhengshuxin
c3d26188fd Test OpenSSL. 2024-03-25 11:37:33 +08:00
zhengshuxin
db39550fe4 Test OpenSSL 2024-03-25 09:46:53 +08:00
zhengshuxin
a9f32a8b91 Add one demo for testing setsockopt. 2024-03-24 09:46:48 +08:00
zhengshuxin
581ea2eca0 Optimize IO timeout process by setsockopt. 2024-03-24 09:18:30 +08:00
shuxin   zheng
1900bda152 Optimize IO timeout for hook API setsockopt(). 2024-03-23 16:50:26 +08:00
shuxin   zheng
904dfc103f make wakeup_waiter more safety when timeout. 2024-03-23 16:49:39 +08:00
shuxin   zheng
369b7b1038 Optimize IO cancel process in fiber module. 2024-03-23 15:27:36 +08:00
shuxin   zheng
65f1027941 Change type the timer from unsigned to size_t. 2024-03-23 11:18:14 +08:00
zhengshuxin
1e886b9270 Add conditional compiling for socket write API to avoid blocked when writing data. 2024-03-22 18:55:55 +08:00
zhengshuxin
53dccd2fd3 Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2024-03-22 18:27:39 +08:00
zhengshuxin
3f2c682958 Don't show warning for dbuf module. 2024-03-22 18:27:06 +08:00
shuxin   zheng
f17c5ed094 Support harmonyOS. 2024-03-20 18:09:28 +08:00
shuxin   zheng
38ac362981 Rename acl project's name to acl_one for harmonyOS. 2024-03-20 10:22:14 +08:00
shuxin   zheng
2a1b89bac6 Add project for harmonyOS. 2024-03-19 15:25:51 +08:00
shuxin   zheng
35b5c73793 Support harmonyOS 2024-03-19 15:14:27 +08:00
shuxin   zheng
cbcbb4085a Adding supporting for harmonyOS. 2024-03-18 15:47:59 +08:00
zhengshuxin
3a8174ece3 Add conditional compiling with ACL_DBUF_HOOK_NEW. 2024-03-16 22:51:28 +08:00
zhengshuxin
f2e553bc98 Build acl by cosmocc. 2024-03-16 16:08:06 +08:00
zhengshuxin
1cee9d59c7 Add functions for modify and get the current connections count for fiber server template. 2024-03-02 10:51:27 +08:00
zhengshuxin
5e7b208702 Add pre_exit callback before service exiting which is different with the old on_exit callback. 2024-03-01 17:23:27 +08:00
zhengshuxin
9a43386b7e Add demos' link. 2024-02-28 09:41:05 +08:00
zhengshuxin
8fd61ff32a Merge branch 'github-upstream' into gitee-master 2024-02-28 09:38:31 +08:00
zhengshuxin
f89952778d Modify readme 2024-02-28 09:33:56 +08:00
shuxin   zheng
590babc67c Optimize acl_host_addrinfo2 by using the buffer with the fixed size. 2024-02-26 16:02:25 +08:00
shuxin   zheng
a8d6feb3dd Remove funding yml. 2024-02-19 22:22:37 +08:00
shuxin   zheng
ba0a630952 Optimize mqtt module by using std::string that will use smaller memroy than acl::string. 2024-02-05 17:26:13 +08:00
shuxin   zheng
7393b6ddf2 Use std::string replacing acl::string. 2024-02-05 16:06:08 +08:00
shuxin   zheng
bec6da83d9 Fixed bugs in acl_transfer_fd.c for MacOS. 2024-02-02 09:30:26 +08:00
zhengshuxin
82beb735a6 Optimize event module for handling the stream's read_ready for system IO. 2024-01-31 11:55:59 +08:00
zhengshuxin
90e4031112 Fixed one bug in aio serivce template when getting fd from dispatch server. 2024-01-31 10:54:26 +08:00
shuxin   zheng
dd03e76f65 modify readme 2024-01-30 09:52:26 +08:00
zhengshuxin
398fe82bdb Build master tools by gcc12 2024-01-27 13:56:48 +08:00
zhengshuxin
ae87f9e3c7 Make acl_fiber_kill() more safety. 2024-01-26 18:34:42 +08:00
zhengshuxin
57a944aefc Don't write log when messages are empty in redis_client_pipeline::flush_all(). 2024-01-26 09:18:27 +08:00
郑树新
15a4ce765d Test GUI fiber 2024-01-21 23:12:03 +08:00
郑树新
454a78d402 Test fiber in GUI on windows platform. 2024-01-16 18:34:08 +08:00
zhengshuxin
b2650d3e6f Optimize and test tbox2.hpp 2024-01-06 12:52:03 +08:00
zhengshuxin
980c56df1f Add tbox2 for transfering messages. 2024-01-06 10:59:33 +08:00
shuxin   zheng
72feade14a Test coder demo. 2023-12-26 11:26:33 +08:00
zhengshuxin
2f42289ebd Use logger_debug() in mqtt_client.cpp when some errors happen. 2023-12-20 14:08:02 +08:00
shuxin   zheng
775f844dc3 Test acl_valid_ipv6_hostaddr(). 2023-12-18 18:09:40 +08:00
郑树新
fd9a4911b8
Merge pull request #320 from popsky/master
Fix bug: redis_client get_string not comsume ending \r\n on empty string
2023-12-18 13:31:36 +08:00
sukong
cfb83b05df Fix bug: redis_client get_string not comsume ending \r\n on empty string, which cause parse error when hgetall on key that contain such empty string. 2023-12-16 02:37:05 +08:00
郑树新
1331b420b3 Load OpenSSL dll successfully on Windows platforms. 2023-12-15 16:20:21 +08:00
zhengshuxin
57b9b904b8 Test ip connecting process. 2023-12-15 10:34:03 +08:00
郑树新
ac1683c687 Use OpenSSL on Windows ok. 2023-12-14 22:49:33 +08:00