Commit Graph

717 Commits

Author SHA1 Message Date
shuxin   zheng
6600a6ac3b Add split_at/split_at_right in string class. 2024-09-30 15:49:41 +08:00
shuxin   zheng
6d8aa2c8b9 Fixed bugs in HttpSerletRequest; Add one method in http_header. 2024-09-18 17:30:19 +08:00
zhengshuxin
92c40f8baa Add read/write waiting timeout for IO stream. 2024-09-16 12:26:57 +08:00
shuxin   zheng
88b9dc3632 Add align bytes set when creating dbuf; 16 bytes align for redis module. 2024-09-12 11:48:12 +08:00
zhengshuxin
db529f4ca5 Json node can be removed when walling through the json tree. 2024-08-24 22:30:56 +08:00
shuxin   zheng
d0a75a3843 Json node can be disabled and won't appear in the json string. 2024-08-23 18:50:47 +08:00
shuxin   zheng
afaa17db51 Format codes and add split in string class. 2024-08-23 14:38:30 +08:00
shuxin   zheng
862021b554 Optimize connection pool module. 2024-08-21 11:41:55 +08:00
zhengshuxin
1e6ae25c2b Test connections pool. 2024-08-20 17:45:09 +08:00
shuxin   zheng
555dea11c8 Use threads pool to check connections in connection pool module. 2024-08-20 17:21:27 +08:00
shuxin   zheng
56d54b2c73 Fixed some compiling warning. 2024-08-20 11:26:25 +08:00
shuxin   zheng
c61d20ca83 Optimize connection pool module. 2024-08-20 11:18:17 +08:00
shuxin   zheng
4542b76c97 Optimize connections pool for checking dead connections. 2024-08-19 18:58:59 +08:00
shuxin   zheng
69045352d6 Compiling one demo ok. 2024-08-19 16:43:46 +08:00
shuxin   zheng
f5478d54a4 Optimize connections pool. 2024-08-19 15:02:32 +08:00
shuxin   zheng
7128f97302 Optimize connections pool module. 2024-08-19 11:51:57 +08:00
shuxin   zheng
f31aa5c3c4 Optimize connection pool module for checking idle connections. 2024-08-15 17:54:22 +08:00
shuxin   zheng
f389e7c10c Add debug args for socket_stream::alive() API; 2024-08-15 16:37:04 +08:00
shuxin   zheng
525b91649d Optimize connection pool module. 2024-08-15 15:52:12 +08:00
shuxin   zheng
1bc8785648 Checking connection's idle and dead status in connection pool module. 2024-08-15 11:18:45 +08:00
shuxin   zheng
0835d761a4 Supports using socketopt to set the timeout of all connections in connection pool. 2024-08-14 17:32:27 +08:00
shuxin   zheng
22392dcbf5 format codes. 2024-08-14 17:00:44 +08:00
zhengshuxin
8e0bc44b9b Change tc's type from int* to double* in connect_pool::peek() API. 2024-08-14 10:23:33 +08:00
zhengshuxin
2d68ef8030 Add more params for connect_pool::peek() API. 2024-08-13 15:45:44 +08:00
zhengshuxin
9f2658027c Remove virtual prefix for mqtt_header to save 8 bytes. 2024-08-04 19:08:21 +08:00
zhengshuxin
3ab1bf8117 Using setsockopt/getsockopt to set/get the IO timeout is one option in set_rw_timeout/get_rw_timeout API of stream class. 2024-07-23 15:03:13 +08:00
shuxin   zheng
5c85d8fe63 Format codes style. 2024-07-22 17:07:57 +08:00
shuxin   zheng
e3ee30e045 Remove virtual prefix to save 8 bytes memory. 2024-07-22 16:08:25 +08:00
zhengshuxin
83aef8288b Add some operations between acl::string and std::string. 2024-06-10 20:47:32 +08:00
zhengshuxin
152a2a2b4f Add more functions for acl::string. 2024-06-10 19:37:18 +08:00
shuxin   zheng
eb934d9601 Optimize split namevalue string. 2024-06-05 09:39:50 +08:00
shuxin   zheng
533aa0d08a Add API of setting/getting context for each SSL IO object. 2024-05-27 09:06:15 +08:00
zhengshuxin
e81cc716da Optimize SSL SNI checking process. 2024-05-26 23:10:41 +08:00
shuxin   zheng
db9a32702b Add sni checking process before SSL handshake. 2024-05-25 16:19:25 +08:00
shuxin   zheng
58058dde10 Fixed one bug in openssl_io.cpp when seting IO timeout by setsockopt. 2024-05-25 11:26:08 +08:00
zhengshuxin
a6d6a527c2 logger_test1, logger_test12 should be added in ACL_LOGGER_MACRO_OFF conditional compilinng. 2024-04-15 14:21:29 +08:00
zhengshuxin
6c856c9d01 Add conditional compiling to disable logger_xxx macros by define ACL_LOGGER_MACRO_OFF to avoid collsion with other third libs. 2024-04-12 18:17:46 +08:00
zhengshuxin
c47609ad20 Modify comments. 2024-03-30 12:49:17 +08:00
zhengshuxin
9e4c422722 Use setsockopt as the default way to control IO timeout. 2024-03-30 10:56:31 +08:00
zhengshuxin
4c41c86bc0 Use setsockopt to set the IO timeout for OpenSSL module. 2024-03-25 17:53:44 +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
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
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