Commit Graph

1333 Commits

Author SHA1 Message Date
zhengshuxin
9782fab652 It maybe reasonable that the read_ready flag was cleared before the real read API called. 2021-11-12 17:24:11 +08:00
zhengshuxin
2f8f33631c add sendto() in ostream class 2021-11-11 19:24:48 +08:00
zhengshuxin
01a7af4eb1 add flags in aio_ostream::sendto() API 2021-11-11 18:28:12 +08:00
zhengshuxin
f98f33e23b optimize aio module 2021-11-11 18:09:48 +08:00
zhengshuxin
be4d110dfd listening queue length can be in aio_socket_stream::open() 2021-11-11 15:59:00 +08:00
zhengshuxin
0b76431269 rename the old function acl_getsocktype to acl_getsockfamily and add the new acl_getsocktype 2021-11-09 22:00:57 +08:00
shuxin   zheng
0123c90bff rename hook_xxx() to enable_xxx() in aio module 2021-11-09 16:14:23 +08:00
shuxin   zheng
bee971875a add udp support in aio_socket_stream class 2021-11-09 14:48:58 +08:00
zhengshuxin
df49f8c5fd add writev in aio_ostream class 2021-11-02 09:30:33 +08:00
zhengshuxin
3001daf1b5 reserve enough memory space for acl_aio_readn() 2021-11-01 11:12:56 +08:00
shuxin   zheng
5e002541ce aio_handle can be reset in aio_stream. 2021-10-31 14:39:38 +08:00
zhengshuxin
cfed77c897 optimize some macro for ACL_VSTREAM 2021-10-27 15:29:27 +08:00
zhengshuxin
8e023c745a Add new function for getting the length of the sending queue in aio module. 2021-10-26 16:48:58 +08:00
moehuster
3463e6ecd1 Feature: add linux-aarch64 support 2021-10-22 11:03:00 +08:00
郑树新
fca21901ac test iocp for fiber module 2021-10-07 23:13:21 +08:00
zhengshuxin
667c2f27f0 optimize building by ndk-build 2021-09-28 15:49:15 +08:00
郑树新
310a87f844 optimize vs projects for windows platform 2021-09-17 00:11:06 +08:00
郑树新
cde03a74d4 optimize vs projects 2021-09-16 19:27:09 +08:00
郑树新
c0719a1b2e optimize vc projects 2021-09-14 18:34:21 +08:00
shuxin   zheng
e371cba331 format code 2021-09-11 15:48:21 +08:00
zhengshuxin
f2db150306 format code 2021-08-22 23:28:21 +08:00
郑树新
9d3f6d5cfd test API hook for fiber module on Windows platform. 2021-08-22 23:15:38 +08:00
shuxin   zheng
079f1eb069 optimize set_url/build_request in http_header.cpp 2021-08-19 10:13:05 +08:00
shuxin   zheng
7b5a36771c optimize http_header::set_url() 2021-08-19 09:50:13 +08:00
shuxin   zheng
ff48a19ab1 url_part_ should be inited in http_header::init() 2021-08-18 19:20:24 +08:00
shuxin   zheng
fda93dbd5c Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2021-08-18 18:25:37 +08:00
shuxin   zheng
df24d1e227 http_header::set_url() can keep the original url 2021-08-18 18:24:55 +08:00
郑树新
2d04980910 optimizing fiber module 2021-08-18 16:07:35 +08:00
zhengshuxin
d3b08ff8fc test redis ttl 2021-08-17 11:00:51 +08:00
zhengshuxin
d7d75d119f use recursive lock when debuging memory 2021-08-13 15:57:03 +08:00
zhengshuxin
5e18c5a939 fixed bug where memory leaking happened that rnd_ should be freed in mbedtls_conf::~mbedtls_conf() 2021-08-12 13:38:17 +08:00
shuxin   zheng
31efba0d37 don't unzip Content-Type: application/x-gzip 2021-08-10 17:16:05 +08:00
shuxin   zheng
40e9dc6fcc enable mbedtls default when building by xcode 2021-08-06 17:26:58 +08:00
shuxin   zheng
6188482fee fixed bug in http_header::build_request() when http protocol version has been set 2021-08-03 11:14:56 +08:00
zhengshuxin
8c0c8aa349 don't log info when unload dll to avoid some errors 2021-07-28 19:13:26 +08:00
shuxin   zheng
2928f0b4d9 add time_unit_t type 2021-07-19 18:52:15 +08:00
shuxin   zheng
662246e62e add set_time_unit() for stream class 2021-07-19 18:29:34 +08:00
郑树新
6a1c34168f build acl by vc2019 2021-07-13 15:09:46 +08:00
shuxin   zheng
506c63a0fe the connect and read/write timeout can use ms 2021-07-09 18:27:11 +08:00
shuxin   zheng
e140a07196 add more comments 2021-07-06 15:12:18 +08:00
shuxin   zheng
1f79c0dc48 add comments in http_utils.hpp 2021-07-06 15:11:50 +08:00
郑树新
9a2dc17512 add vc2019 project for redis_ssl demo 2021-07-06 14:49:19 +08:00
shuxin   zheng
41f143868f http protocol version can be set in http_header 2021-06-25 11:38:46 +08:00
shuxin   zheng
37fecbfdfa fixed bug in url_coder when decoding a NULL value 2021-06-25 11:12:18 +08:00
shuxin   zheng
2cecabebb4 correct comments of headers 2021-06-22 17:02:16 +08:00
shuxin   zheng
eb074943af correct comments headers 2021-06-22 16:07:34 +08:00
shuxin   zheng
d066a664db don't hook new in lib_acl_cpp 2021-06-21 17:00:42 +08:00
shuxin   zheng
fa9724c0c7 add acl_cpp_verbose() 2021-06-21 09:36:15 +08:00
shuxin   zheng
dd6b6f913a optimize memory module 2021-06-18 14:52:21 +08:00
郑树新
8742d622a0 add net module of lib_acl_cpp in vc2012, vc2013, vc2017 2021-06-17 17:38:06 +08:00
郑树新
58f0fa8798 add lost file and fixed one bug in rfc1035 2021-06-16 14:40:04 +08:00
shuxin   zheng
40ddd8aee5 add http_url class for parsing url 2021-06-08 16:45:49 +08:00
zhengshuxin
00fdf2719c fixed bug in json_node::set_text(). 2021-06-03 16:01:15 +08:00
shuxin   zheng
2663fc923a add cname in acl_rfc1035_build_reply() in acl_rfc1035.c 2021-06-02 16:53:31 +08:00
shuxin   zheng
e1fdd70000 modify acl_dns_lookup()/acl_dns_lookup2() 2021-05-31 10:56:27 +08:00
zhengshuxin
995ed8ae06 fixed bugs in redis_list demo 2021-05-27 10:06:44 +08:00
zhengshuxin
d804f33916 fixed one compiling warning 2021-05-25 17:21:39 +08:00
shuxin   zheng
0c01da318d fixed bugs in beanstalk module 2021-04-14 09:33:44 +08:00
shuxin   zheng
2283993e07 write mqtt readme 2021-03-28 22:34:33 +08:00
shuxin   zheng
1c0b34144c add readme for mqtt module of acl 2021-03-28 22:23:54 +08:00
shuxin   zheng
b3e795a099 optimize json module 2021-03-28 11:41:11 +08:00
shuxin   zheng
94227aebd0 add json test shell 2021-03-28 00:07:55 +08:00
shuxin   zheng
9b835c8e8a optimize json module 2021-03-28 00:02:43 +08:00
shuxin   zheng
c4993fd694 fixed one bug in json module. 2021-03-27 15:59:42 +08:00
shuxin   zheng
425de49de8 fixed one bug in one json demo 2021-03-27 13:55:17 +08:00
zhengshuxin
9a9dae1ab8 test mqtt length's encoding 2021-03-25 16:43:02 +08:00
zhengshuxin
7270b2eb71 test mqtt module 2021-03-24 19:03:53 +08:00
zhengshuxin
d552be0f9c test mqtt module 2021-03-24 18:01:13 +08:00
zhengshuxin
32183662db test mqtt 2021-03-24 17:54:34 +08:00
shuxin   zheng
5e097bdeda remove unused variable in mqtt_aclient.hpp 2021-03-15 18:54:50 +08:00
zhengshuxin
33883310f4 build mqtt module ok on linux. 2021-03-12 17:32:08 +08:00
shuxin   zheng
fda4920244 add more comments in the headers of mqtt module. 2021-03-12 17:26:49 +08:00
shuxin   zheng
87c12a8022 fixed compiling warning by vc 2021-03-12 11:41:30 +08:00
shuxin   zheng
21497509aa fixed compiling warning 2021-03-12 11:39:44 +08:00
shuxin   zheng
e1d166e4cb test mqtt 2021-03-12 11:31:04 +08:00
zhengshuxin
f5b7aca751 test and optimize mqtt module 2021-03-12 11:07:29 +08:00
shuxin   zheng
43faf3ca39 test mqtt in aio/bio, client/server mode 2021-03-11 20:19:53 +08:00
shuxin   zheng
0434ca104d test mqtt server mode 2021-03-11 19:03:22 +08:00
shuxin   zheng
6d8a625f5c add mqtt aclient for aio communication 2021-03-10 19:32:56 +08:00
shuxin   zheng
dbab78ef75 add mqtt_aclient for async communication with mqtt server or mqtt client 2021-03-10 17:21:29 +08:00
shuxin   zheng
ca3dadc3aa optimize mqtt module 2021-03-09 16:16:32 +08:00
shuxin   zheng
d7c23db7be add mqtt_header in xcode project 2021-03-09 10:35:55 +08:00
zhengshuxin
aae09459fa fixed bugs in http_aclient when unzip small data 2021-03-09 10:09:48 +08:00
shuxin   zheng
e7b91f1344 add mqtt_header 2021-03-09 10:02:46 +08:00
shuxin   zheng
8e93ab32e0 test mqtt module 2021-03-08 19:57:24 +08:00
shuxin   zheng
4e47c898ca test mqtt module 2021-03-08 16:21:51 +08:00
shuxin   zheng
ad6803d8f9 optimize mqtt module 2021-03-08 15:03:32 +08:00
shuxin   zheng
76a9900ca0 add mqtt in Android.mk 2021-03-07 13:03:12 +08:00
zhengshuxin
ca0a90fde0 build mqtt module ok by vc2019 2021-03-07 12:49:43 +08:00
shuxin   zheng
239494dae9 add ACL_CPP_API for mqtt class 2021-03-07 12:45:22 +08:00
shuxin   zheng
26416f2cf7 add mqtt module into all vc projects 2021-03-07 11:59:05 +08:00
shuxin   zheng
9d11422489 test mqtt pub and sub 2021-03-07 10:34:59 +08:00
shuxin   zheng
90b5e8ccf8 add test for mqtt 2021-03-06 10:49:55 +08:00
shuxin   zheng
da0540791f test mqtt module 2021-03-06 10:49:22 +08:00
shuxin   zheng
c2594aa5fe add mqtt_client for transfering mqtt message between localhost and network. 2021-03-05 14:30:21 +08:00
shuxin   zheng
7474b95a83 add pingreq, pingresp and disconnect for mqtt 2021-03-04 17:47:27 +08:00
shuxin   zheng
ed9d2fded9 add unsub & unsub ack 2021-03-04 17:37:28 +08:00
shuxin   zheng
3aa97f7536 add pub & sub & pub ack & sub ack, and optimize structure 2021-03-04 16:59:00 +08:00
shuxin   zheng
57fb04e671 adding mqtt_puback ... 2021-03-03 18:36:31 +08:00
shuxin   zheng
3203562bc0 add mqtt_subscribe 2021-03-03 16:00:13 +08:00
shuxin   zheng
6c17451e0b adding mqtt_subscribe 2021-03-02 18:34:34 +08:00
shuxin   zheng
2402d482fb add mqtt_pubcomp 2021-03-02 17:56:02 +08:00
shuxin   zheng
12fdda9da3 add mqtt_pubrel 2021-03-02 17:40:14 +08:00
shuxin   zheng
51ce9f18a3 add mqtt_pubrec 2021-03-02 16:56:52 +08:00
shuxin   zheng
5e08e1b425 add mqtt_puback 2021-03-02 16:39:06 +08:00
shuxin   zheng
82204a5457 add mqtt_publish 2021-03-02 15:43:49 +08:00
shuxin   zheng
1887a39f32 adding mqtt_connect & mqtt_connack 2021-03-02 11:31:24 +08:00
shuxin   zheng
7bec66c2c9 parse mqtt protocol in status machine 2021-03-01 18:38:36 +08:00
shuxin   zheng
9c3cfce416 writing CONNECT of mqtt module 2021-03-01 18:27:11 +08:00
shuxin   zheng
a965986f74 delete unused file 2021-02-26 18:40:03 +08:00
shuxin   zheng
ebc4c4e7a7 adding mqtt lib 2021-02-26 18:37:21 +08:00
zhengshuxin
e2fbd308cb add one sample for testing event timer module 2021-02-10 19:18:49 +08:00
zhengshuxin
23b0f0c5af fixed some compiling warning on windows 2021-02-09 15:04:23 +08:00
zhengshuxin
83bbc1bdad fixed compiling warning 2021-02-09 11:20:18 +08:00
zhengshuxin
165d327357 fixed some compiling warning when some modules were disabled. 2021-02-07 09:54:45 +08:00
zhengshuxin
e793178e06 format code 2021-02-02 22:24:14 +08:00
zsxxsz
70aea8ec7e fixed compiling error on vc2003, vc2008, vc2010 2021-02-02 22:09:03 +08:00
zhengshuxin
f5bc676fbd optimize redis pipeline mode 2021-01-31 15:43:29 +08:00
zhengshuxin
b509abbb5d optimize memory debug module 2021-01-18 17:14:30 +08:00
shuxin   zheng
ce4eefa5ba modify samples 2021-01-17 18:57:37 +08:00
zhengshuxin
15e793fae0 modify test case 2021-01-10 13:55:19 +08:00
zhengshuxin
b16ca343dc don't use mutex when sendback result in redis_pipeline 2021-01-10 13:51:49 +08:00
shuxin   zheng
b6f292085c add redis_client_pipeline in all redis commands 2021-01-09 23:16:15 +08:00
shuxin   zheng
21c454a00a add pipeline using mode in redis readme 2021-01-09 15:48:23 +08:00
zhengshuxin
2f515523de redis_pipeline test case 2021-01-09 14:55:58 +08:00
zhengshuxin
263ba07507 test redis_pipeline 2021-01-09 14:14:41 +08:00
shuxin   zheng
f4c6ef3dc4 test redis_pipeline 2021-01-09 14:08:40 +08:00
shuxin   zheng
16e51c46ed test redis_pipeline 2021-01-09 10:57:42 +08:00
zhengshuxin
684e1e445e test redis_pipeline 2021-01-09 10:48:53 +08:00
shuxin   zheng
4286778f1b test redis_pipeline 2021-01-09 10:33:51 +08:00
shuxin   zheng
f746ee9b6d acl redis_pipeline module is ok 2021-01-08 14:35:25 +08:00
shuxin   zheng
ab2d78efaf optimize redis_pipeline 2021-01-07 16:35:12 +08:00
shuxin   zheng
fdec329160 add retrying in redis_pipeline 2021-01-07 11:20:12 +08:00
shuxin   zheng
333d814497 test redis_pipeline 2021-01-06 18:17:20 +08:00
shuxin   zheng
66942cf5ce optimize and test redis_pipeline 2021-01-06 14:35:12 +08:00
zhengshuxin
d811990ade optimize redis_pipeline 2021-01-06 10:07:31 +08:00
shuxin   zheng
c6d4ca5797 test redis_pipeline 2021-01-05 19:39:51 +08:00
shuxin   zheng
73a4620896 test redis_pipeline 2021-01-05 19:35:52 +08:00
shuxin   zheng
96cab01c5a test redis_pipeline 2021-01-05 19:27:01 +08:00
shuxin   zheng
2d0ab95d7c test redis_pipeline 2021-01-05 19:06:51 +08:00
shuxin   zheng
0d24492db2 optimize redis_pipeline 2021-01-05 17:48:39 +08:00
zhengshuxin
ebc4adb376 optimize and test redis_pipeline module 2021-01-05 15:42:25 +08:00
shuxin   zheng
a7d14d6744 optimize redis_pipeline 2021-01-05 10:02:53 +08:00
zhengshuxin
52181516f3 test redis_pipeline mode 2021-01-03 23:00:24 +08:00
shuxin   zheng
cd195d3b41 redis_pipeline support redirect 2021-01-03 22:33:50 +08:00
zhengshuxin
6554585b29 optimize redis_pipeline 2021-01-02 20:48:36 +08:00
shuxin   zheng
91a9d26c69 add passwd in redis_pipeline 2021-01-02 20:28:13 +08:00
shuxin   zheng
2481eaa88c optimize redis_pipeline 2021-01-02 20:21:20 +08:00
shuxin   zheng
a0b16f8585 optimize redis_pipeline 2021-01-02 20:15:26 +08:00
zhengshuxin
7ffc5e9f92 optimize redis_pipeline 2021-01-01 20:35:07 +08:00
shuxin   zheng
cf31e95baf fixed one compiling error when disable sqlite module 2020-12-21 16:10:07 +08:00
shuxin   zheng
e87e44b119 add more API for db_sqlite module by Vhdsih 2020-12-17 09:06:54 +08:00
zhangdongchang
7025fa35f4 Add some native sqlite3 apis for binary data support 2020-12-16 12:06:27 +08:00
shuxin   zheng
0ac0d56bc8 fixed bug in samples/master/master_http_rpc demo. 2020-12-14 13:45:34 +08:00
shuxin   zheng
1fdca9e26a correct problems in vc projects 2020-11-21 20:01:58 +08:00
shuxin   zheng
c6856643b4 fixed problem in vc2015 project 2020-11-21 19:53:11 +08:00
shuxin   zheng
0d5cd0993f test dbuf_allocator 2020-11-18 15:42:23 +08:00
shuxin   zheng
e4190ca781 add stl allocator using dbuf_pool for improving the performance 2020-11-18 15:24:26 +08:00
shuxin   zheng
e98ddf4abb add rfc1035 c++ module 2020-11-18 10:11:11 +08:00
zhengshuxin
c82d4ab07f add benchmark test for different json parsers. 2020-11-17 18:23:49 +08:00
zhengshuxin
63392f4209 fixed compiling error when disable ACL_PREPARE_COMPILE compiling option. 2020-11-09 17:44:30 +08:00
shuxin   zheng
9addce4c01 optimize json module's performance. 2020-11-06 18:35:57 +08:00
zhengshuxin
7b60172514 optimize json module's performance by using dbuf_pool 2020-11-06 15:50:16 +08:00
shuxin   zheng
bcdd1ff51a optimize json module's performance by using dbuf as the memory allocator. 2020-11-06 14:30:00 +08:00
shuxin   zheng
5a4ae5b475 don't use _WINDLL for win32/win64 platform 2020-11-05 16:05:47 +08:00
shuxin   zheng
ea531338d6 format code style 2020-11-05 15:16:35 +08:00
shuxin   zheng
33e27867fc don't fatal when load zlib dynamic lib error 2020-11-05 15:14:57 +08:00
Artamonov Evgenyi
5d6e4f9541 Fix redis scan_keys 2020-10-29 22:07:08 +03:00
zhengshuxin
b2d07d0b75 release 3.5.1-10 version 2020-10-28 16:27:31 +08:00
shuxin   zheng
593fb7693d test fiber and dns 2020-10-22 10:59:12 +08:00
shuxin   zheng
c414f7afab acl fiber can support Android now. 2020-09-27 23:35:04 +08:00
zhengshuxin
712f2c1781 don't warn when compiling fiber module 2020-09-26 23:45:30 +08:00
unknown
206de9bb25 use 64bits first for ssize_t on windows platform. 2020-09-22 21:39:41 +08:00
unknown
9e68b56c10 fixed bug for defining ssize_t on windows x64 platform. 2020-09-22 21:17:58 +08:00
unknown
8fee32e9a4 supporting vc2019 2020-09-16 17:14:16 +08:00
shuxin   zheng
5057c10d5f support vc2019 2020-09-16 16:58:10 +08:00
unknown
49f0ad6c1f chang old vc project 2020-09-16 16:26:00 +08:00
unknown
858bcc7a94 add projects for vc2019 2020-09-16 16:25:20 +08:00
shuxin   zheng
37af0e1d78 merge mbedtls_conf 2020-09-07 21:24:39 +08:00
moehuster
a0143fb2fe bugfix: mbedtls do NOT manage cert/key pair's memory 2020-09-07 20:04:16 +08:00
shuxin   zheng
42e0249ff5 merge mbedtls_conf 2020-09-06 22:34:29 +08:00
moehuster
5d88ea55a9 feature: mbedtls add multi server cert support 2020-09-06 21:49:02 +08:00
shuxin   zheng
7f5434c8de don't call load() in static polarssl 2020-08-25 10:27:32 +08:00
shuxin   zheng
01c8f631ce use mbedtls in dynamic as default 2020-08-25 10:24:30 +08:00
shuxin   zheng
cb43c1fe45 add one demo for testing ssl module when using static mebedtls library. 2020-08-25 10:22:27 +08:00
shuxin   zheng
58754c8952 fixed bug in mbedtls_conf.cpp when using static mbedtls library. 2020-08-25 10:20:47 +08:00
shuxin   zheng
156599a9c9 enable ssl for Android 2020-08-24 14:33:54 +08:00
shuxin   zheng
24124b87e7 format code, replace "\n" with "\r\n" for all source files. 2020-08-21 14:55:03 +08:00
shuxin   zheng
e8445eb07e fixed bug for redis command "ROLE" in redis_role.cpp 2020-08-17 23:36:20 +08:00
shuxin   zheng
bb2aa45424 when one redis node wasn't set, then using the first redis node's config. 2020-08-17 12:00:27 +08:00
shuxin   zheng
2a86707bf2 fixed one bug in redis module that all the redis servers' addrs should be set after the module was rewrote. 2020-08-17 11:53:11 +08:00
shuxin   zheng
cb94da34ce format code 2020-08-17 09:52:17 +08:00
unknown
d4313ab4f6 fixed some compiling error by vc2015 2020-08-06 18:14:31 +08:00
zhengshuxin
d800ca468e use MD compiling options for all vc projects 2020-08-06 15:42:37 +08:00
zhengshuxin
427e88f6fd use DLL when build samples for vc projects 2020-08-06 15:19:17 +08:00
zhengshuxin
3a258945ee modify vc projects 2020-08-06 15:09:26 +08:00
unknown
556ec95a93 modify projects 2020-08-06 14:13:31 +08:00
郑树新
a6976962cd fixed compiling error by vc2012 2020-07-26 16:28:16 +08:00
shuxin   zheng
4da1f56f0a fixed bug in redis_zset::zstore() 2020-07-24 11:49:40 +08:00
shuxin   zheng
a43a6af5ac add get_limit() in thread_pool to get the threads count limit in the threads pool. 2020-07-23 10:39:39 +08:00