Commit Graph

1402 Commits

Author SHA1 Message Date
zhengshuxin
e391b1a7de Optimize setsockopt timeout in openssl_io.cpp. 2024-03-26 09:57:55 +08:00
zhengshuxin
4c41c86bc0 Use setsockopt to set the IO timeout for OpenSSL module. 2024-03-25 17:53:44 +08:00
zhengshuxin
c3d26188fd Test OpenSSL. 2024-03-25 11:37:33 +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
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
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
zhengshuxin
57a944aefc Don't write log when messages are empty in redis_client_pipeline::flush_all(). 2024-01-26 09:18:27 +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
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
shuxin   zheng
e7a00def28 Fixed bugs in test demos. 2023-12-12 11:52:51 +08:00
shuxin   zheng
a40a165b4e Url parser can parsing url like http://ip:port. 2023-12-12 11:52:08 +08:00
shuxin   zheng
73d0f3a02a Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2023-12-09 15:46:01 +08:00
shuxin   zheng
b74b0d1c0e socket_stream's default read/write buffer size can be set by calling acl::istream::set_rbuf_size() or acl::ostream::set_wbuf_size(). 2023-12-09 15:41:45 +08:00
zhengshuxin
cad5d4c8d7 Add operator == for acl::string for comparing "ok" == acl::string. 2023-12-08 21:37:42 +08:00
zhengshuxin
962e8f80fd Fixed one compiling error when build lib_acl_cpp to use Openssl in static mode with OPENSSL_STATIC=yes 2023-11-30 14:25:52 +08:00
zhengshuxin
a4337cf7fc Add CA double check on server side. 2023-11-26 10:30:19 +08:00
zhengshuxin
4ee1036c41 Change the cmake required from 3.2.0 to 2.8.0. 2023-11-22 14:57:39 +08:00
shuxin   zheng
88f215e41c Optimize and test bind local network interface when connecting the remote server. 2023-11-18 14:53:25 +08:00
shuxin   zheng
0b8dd11dca Client socket can bind local interface when connecting to the remote server. 2023-11-17 18:49:11 +08:00
shuxin   zheng
1d9386a73d Build ok by xcode 15.0 2023-11-15 16:19:55 +08:00
zhengshuxin
52f0e713f8 Don't append '\0' in string::truncate(). 2023-11-06 22:16:01 +08:00
zhengshuxin
11a066390a Use void* to replace MYSQL* db_mysql.hpp to avoid type define collision when compiling acl_cpp module. 2023-11-06 22:12:40 +08:00
zhengshuxin
70225a813c fixed one bug in db_mysql::load() which should return bool 2023-10-30 12:32:42 +08:00
zhengshuxin
3b9fc38646 Fixed one compiling error in db_mysql::load() for which should return bool when db_mysql has been disabled. 2023-10-30 09:15:07 +08:00
zhengshuxin
815d277564 dbuf_pool can only be freed when it is created internal in dbuf_guard. 2023-10-27 17:37:52 +08:00
shuxin   zheng
551d285833 Add bool return for load() API in db module. 2023-10-18 14:27:29 +08:00
shuxin   zheng
ee0565d169 Fixed one dead loop bug in mqtt_connect.cpp. 2023-10-17 16:30:56 +08:00
zhengshuxin
1cf20f39fc Remove debug log info in openssl_io.cpp. 2023-10-17 14:44:46 +08:00
zhengshuxin
fe9004ffb6 Redifine acl::shared_stream for c++11 using. 2023-09-26 10:44:15 +08:00
shuxin   zheng
52c9da8e3e Compile demo on mac 2023-09-20 18:42:04 +08:00
zhengshuxin
217dc1aa65 Add multicast in master udp service. 2023-09-20 18:23:03 +08:00
zhengshuxin
264ec4f36f Add and test multicase socket. 2023-09-20 17:21:27 +08:00
zhengshuxin
30de5d2967 Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2023-09-20 16:53:48 +08:00
shuxin   zheng
e78c53d659 Add more functions for multicast. 2023-09-20 16:53:15 +08:00
zhengshuxin
f9c40ff9f5 Move demo of udp/server. 2023-09-20 15:22:09 +08:00
shuxin   zheng
fff2bed41b Adding multicast ... 2023-09-20 15:15:11 +08:00
zhengshuxin
a2f83279cc Optimize redis_client_pipeline when no redis node got in the beginning. 2023-09-13 17:52:50 +08:00
zhengshuxin
74fea49d62 Fixed bugs in redis_client_pipeline when handling redis node down. 2023-09-13 17:19:19 +08:00
zhengshuxin
635f3cbbbd test https 2023-09-03 21:20:35 +08:00
shuxin   zheng
c79eaac19c Decrease buff size for http module from 8k to 4k; format codes style. 2023-08-23 14:13:49 +08:00