Commit Graph

840 Commits

Author SHA1 Message Date
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
ebc4c4e7a7 adding mqtt lib 2021-02-26 18:37:21 +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
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
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
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
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
e98ddf4abb add rfc1035 c++ module 2020-11-18 10:11:11 +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
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
unknown
49f0ad6c1f chang old vc project 2020-09-16 16:26:00 +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
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
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
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
zhengshuxin
22264b9ade testing redis pipeline 2020-07-21 00:00:09 +08:00
zhengshuxin
8995284180 test redis pipeline 2020-07-20 22:41:40 +08:00
zhengshuxin
6d596dc2e4 test pipeline 2020-07-20 17:55:12 +08:00
shuxin   zheng
d24c5c82e1 testing redis pipeline mode 2020-07-20 17:27:32 +08:00
shuxin   zheng
4f2dd3649f rewrite redis_client_cluster/redis_command classes. 2020-07-20 11:21:47 +08:00
zhengshuxin
4296c6a536 add more methos in redis_hash 2020-07-16 10:43:00 +08:00
shuxin   zheng
7af9d5dec0 test ssl SNI 2020-07-02 15:44:44 +08:00
shuxin   zheng
6e694b7080 support ssl SNI 2020-07-01 17:05:41 +08:00
shuxin   zheng
a409da3010 add SNI support in mbedtls module 2020-07-01 16:45:26 +08:00
shuxin   zheng
dee4ebeaea http module can response json&xml data 2020-06-26 15:21:13 +08:00
shuxin   zheng
ccce38b52d test demo 2020-06-26 10:33:10 +08:00
shuxin   zheng
0c96012d53 fixed one bug for memory leak in no debug mode 2020-06-18 15:39:01 +08:00
shuxin   zheng
1637b52323 enable ssl in default mode for http_aclient class 2020-06-18 15:38:26 +08:00
shuxin   zheng
ff74ac0377 optimize mem checker module 2020-06-13 10:54:34 +08:00
shuxin   zheng
be57d3a755 optimize memory debug module 2020-06-12 18:29:20 +08:00
shuxin   zheng
bf45c77d9b optimize memory debug module 2020-06-12 17:06:16 +08:00
shuxin   zheng
0e62b2689f replace acl::thread_mutex with acl_pthread_mutex_t in malloc.cpp 2020-06-12 16:15:51 +08:00
zhengshuxin
f505f526b8 build ok by gcc10 2020-06-12 15:37:11 +08:00
shuxin   zheng
7f13a285c6 optimize memory debug process 2020-06-12 15:14:26 +08:00
zhengshuxin
7004f50058 disable hook new for creating dbuf_pool because the compiling error by gcc 2020-06-12 14:51:41 +08:00
shuxin   zheng
c14108e3a3 add memory leaking debug module: see lib_acl_cpp/include/acl_cpp/stdlib/malloc.hpp. 2020-06-12 14:21:41 +08:00
shuxin   zheng
175d852ea5 add more options for zadd in redis_zset 2020-06-07 21:47:59 +08:00
zhengshuxin
e355d83ab5 support "application/x-gzip" response header in http_client.cpp. 2020-06-01 16:18:47 +08:00
zhengshuxin
4b6add9edd remove debug log info 2020-05-29 10:35:34 +08:00
zhengshuxin
b5173f228f add HVALS command in redis_hash 2020-05-22 13:37:49 +08:00
shuxin   zheng
086cf85140 make string operator= more safety 2020-05-20 11:05:37 +08:00
shuxin   zheng
53d97b221c add some methos in redis_key class 2020-05-19 12:47:50 +08:00
shuxin   zheng
15e48b11b6 expand the bitmap's function 2020-05-19 12:03:24 +08:00
shuxin   zheng
8130e91886 format code style 2020-05-09 23:31:44 +08:00
wii
344f06e4fb -bugs flag比对错误 2020-05-09 16:56:50 +08:00
wii
2868c572ed Redis String cmd:"SET key value [EX seconds] [PX milliseconds] [NX|XX]"支持 2020-05-09 16:22:51 +08:00
shuxin   zheng
e99003e472 keep compiling symbols for ndk16 2020-05-08 15:18:55 +08:00
shuxin   zheng
3250875984 test websocket demo for Android 2020-05-08 14:43:30 +08:00
shuxin   zheng
d5e0e7d965 fixed bug in mbedtls_conf module and test redis with ssl ok. 2020-05-05 23:16:32 +08:00
shuxin   zheng
6755d9b670 modify project for Android with lower ndk9 version 2020-04-11 12:08:45 +08:00
shuxin   zheng
7378db23d9 fixed one bug in http_ctype.cpp 2020-04-06 18:25:19 +08:00
shuxin   zheng
54cd57a8bc modify mbedtls module 2020-04-01 20:29:30 +08:00
shuxin   zheng
0caea1ffbb build for Android with gnustl_shared. 2020-03-23 22:30:47 +08:00
shuxin   zheng
5fb7805729 Merge branch 'upstream-master' 2020-03-14 20:55:54 +08:00
shuxin   zheng
d87b1c4e64 add test sample http_request_manager for testing fiber and connect_manager. 2020-03-14 20:52:16 +08:00
shuxin   zheng
66112452f3 decrease libs' size by skipping __FILE__ in logger macro. 2020-02-25 16:08:20 +08:00
zhengshuxin
a5cefac181 fixed bug in thread.cpp when restarting thread using the same thread object 2020-02-16 13:06:34 +08:00
shuxin   zheng
6a13e7c3a2 make ssl module more easy 2020-01-12 19:41:29 +08:00
shuxin   zheng
6a0e5d59b7 fixed compiling warning by vc 2020-01-09 17:00:11 +08:00
zsxxsz
7d7381f960 compiling ok by vc2003 2020-01-09 00:04:02 +08:00
zhengshuxin
54edd4098e fixed compiling error 2020-01-08 17:50:46 +08:00
郑树新
1e56d68828 optimize mbedtls_conf.cpp 2020-01-08 16:00:41 +08:00
郑树新
910a313ae2 load mbedtls in one or threee libs 2020-01-07 18:33:44 +08:00
zhengshuxin
5cdae99f3a enable mbedtls to support VC 2020-01-07 13:50:04 +08:00
shuxin   zheng
4a7dce51ba acl::mbedtls_conf can load three mbedtls dynamic libs 2020-01-06 15:29:03 +08:00
zhengshuxin
dbad2342d1 test mbedtls module 2020-01-03 15:57:34 +08:00
shuxin   zheng
444554525a merge bugfix from polarssl_io.cpp to mbedtls_io.cpp for send() method 2020-01-03 00:09:33 +08:00
郑树新
e3fd63da99
Merge pull request #193 from moehuster/develop
Bugfix: polarssl_io::send failed when buffer length exceed 16384
2020-01-02 23:59:45 +08:00
shuxin   zheng
59955b5b23 test acl using mbedtls ok! 2020-01-02 23:29:06 +08:00
moehuster
4d524eeb45 Bugfix: polarssl_io::send failed when buffer length exceed 16384 2020-01-02 19:57:48 +08:00
shuxin   zheng
7337774e46 fixed bug in http_aclient.cpp for memory leaking when enable gzip feature. 2019-12-23 13:34:05 +08:00
shuxin   zheng
7aea2e148b fixed one bug in mbedtls_io.cpp when using safe_snprintf in open() method 2019-12-21 21:53:37 +08:00
郑树新
b2ec46671a build for windows ok 2019-12-20 15:30:02 +08:00
shuxin   zheng
be1ff25ee1 test mbedtls 2019-12-20 15:08:36 +08:00
shuxin   zheng
d8518893b2 use sslbase_conf/sslbase_io other than polarssl_conf/polarssl_io 2019-12-18 11:40:41 +08:00
shuxin   zheng
7c86d76c33 add sslbase_io/sslbase_conf for compatiable with more ssl libs. 2019-12-18 11:22:54 +08:00
shuxin   zheng
c6c9eaa47e add mbedtls into vc projects 2019-12-17 18:30:49 +08:00
zhengshuxin
b4306aa1cd format code 2019-12-13 16:32:06 +08:00
shuxin   zheng
6135813d6c add reactor mode for aio_listen_stream 2019-12-12 15:29:58 +08:00
shuxin   zheng
e9ab2e4a79 compiling gson.cpp ok for ndk9d 2019-12-04 17:53:10 +08:00
shuxin   zheng
3a0ef41213 remove ACL_CLIENT_ONLY from ndk-build.sh 2019-12-04 17:41:55 +08:00
shuxin   zheng
8056521002 modify aio_listen_stream 2019-12-03 14:46:50 +08:00
shuxin   zheng
a0d17357ec add more function for aio_listen_stream class 2019-12-03 14:45:11 +08:00
shuxin   zheng
1e9a0f1721 build acl for ndk-r9d for Android 2019-11-22 17:37:20 +08:00
shuxin   zheng
93f9d6eb83 build for ndk9d ok by using *.mk for Android 2019-11-22 16:14:20 +08:00
shuxin   zheng
8d8e5574ac format c++ code 2019-11-04 17:35:00 +08:00
Wii
97368e630f bug fixed in redis_stream xread 2019-11-02 23:15:22 +08:00
zhengshuxin
300524a8f0 fixed bug in http_aclient.cpp that memory may leak. 2019-10-31 16:51:41 +08:00
shuxin   zheng
e97ec5a2ca bug fixed in acl::aio_handle::dns_empty() 2019-10-29 10:00:58 +08:00
zhengshuxin
76ba04380d add ssl enable/disable switch for http_aclient 2019-10-18 10:02:22 +08:00
zhengshuxin
2c78c1961b compiling flag "-fvisibility=hidden" should not be used! 2019-09-24 09:33:11 +08:00
zhengshuxin
1e99026a6e rename randmkey to randomkey in redis_key 2019-09-20 18:40:16 +08:00
shuxin   zheng
5a741c439d add conditional compiling for SSL in http_aclient 2019-09-18 21:15:24 +08:00
zhengshuxin
31283e4207 set_frame_masking_key is default in websocket client mode 2019-09-17 18:31:03 +08:00
zhengshuxin
4ac0748114 set_frame_masking_key() should be called in http_aclient::ws_handshake() in client mode. 2019-09-17 16:51:43 +08:00
shuxin   zheng
a8230ddd7c add waiting timeout for redis_pubsub::get_message() 2019-09-16 22:30:40 +08:00
shuxin   zheng
023cd46ed2 fixed bugs in get_peer()/get_local() in aio_stream class 2019-09-16 21:55:14 +08:00
zhengshuxin
ce29a52a98 delay time default was set to 100 ms 2019-09-06 13:17:45 +08:00
郑树新
b42b8bb33d build ok in release mode 2019-09-06 11:49:05 +08:00
zhengshuxin
a87c8d046c support 302, 301 redirect in http module 2019-08-28 11:18:18 +08:00
zhengshuxin
ec9dfe6d3f release 3.5.0-10 for bugfix in socket_stream::get_ip() 2019-08-22 11:38:50 +08:00
zhengshuxin
f552c6aef8 decrease http_aclient's size 2019-08-21 17:54:35 +08:00
郑树新
8f4fd32fc0 add on_ns_failed() callback for http_aclient when nslookup failed. 2019-08-21 17:42:07 +08:00
zhengshuxin
56f66e2688 optimize class variables to decrease the size of class object. 2019-08-20 17:17:37 +08:00
zsxxsz
46b4bcd63c add some functions for DNS operations 2019-08-13 21:55:34 +08:00
zhengshuxin
a53b9d36ff dns resolving and aio connect are ok when using multiple DNS server. 2019-08-13 18:29:40 +08:00
zhengshuxin
03896a6a12 websocket key for server side 2019-08-09 22:36:54 +08:00
zhengshuxin
7bcb88ae3c optimize websocket handshake. 2019-08-09 22:22:55 +08:00
zhengshuxin
a347debcfa ws key 2019-08-09 19:02:38 +08:00
zhengshuxin
a43648f379 ws_key created 2019-08-09 18:50:10 +08:00
zhengshuxin
4bd36703b0 ws key 2019-08-09 18:22:35 +08:00
zhengshuxin
6eba8bbafd ws key should be base64 encoded in http_header::set_ws_key() 2019-08-09 18:05:51 +08:00
zhengshuxin
7ded499111 url_coder supports value is NULL or empty 2019-08-08 16:13:05 +08:00
zhengshuxin
1eadcff994 fixed compiling error when using polarssl with static library 2019-08-06 18:23:32 +08:00
郑树新
78a1600b90 fixed bug in init_log_mutex() of acl_mylog.c;
fixed bug in atomic_long  which can't be used in windows.
2019-08-02 19:21:24 +08:00
zhengshuxin
9697f95b8f Revert "All source code have been changed to use utf8 charset with BOM header!"
This reverts commit 15d999759e.
2019-07-28 10:31:56 +08:00
zsxxsz
15d999759e All source code have been changed to use utf8 charset with BOM header! 2019-07-27 22:44:32 +08:00
zhengshuxin
c5de28c7ee fixed bug in redis_set::spop 2019-07-27 10:08:46 +08:00
zhengshuxin
429b674430 format code style 2019-07-26 09:19:04 +08:00
meihouhao2017
fb32ba0601 补充遗漏修改。 2019-07-25 22:59:47 +08:00
meihouhao2017
9db698f92b 补充上次提交遗漏的修改,使patch请求生效。 2019-07-25 22:53:08 +08:00
郑树新
25d9204c61 fixed compiling warning on windows. 2019-07-24 17:27:12 +08:00
zhengshuxin
498e0537dd add new features in fstream/ofstream/ifstream 2019-07-24 16:12:58 +08:00
zhengshuxin
23f97bdd4f HttpServletRequest won't discard body_parse_ and will read request body when user calls getJson/getXml. 2019-07-20 16:14:09 +08:00
zhengshuxin
b3ab894e6d format code style. 2019-07-14 11:43:15 +08:00
zhengshuxin
1e48c13176 format code style 2019-07-14 10:17:55 +08:00
zhengshuxin
5653b32c34 format code style. 2019-07-13 22:45:58 +08:00
zhengshuxin
92ad11180a polarssl_io can be deleted when reference is zero. 2019-07-12 11:05:17 +08:00
zhengshuxin
f9c04e327d format c++ code style. 2019-07-10 16:29:25 +08:00
郑树新
5fc7f2ebc7 use zlib.dll other than zlib1.dll 2019-07-10 13:59:52 +08:00
zsxxsz
a2c7889455 fixed bugs in acl_atomic_int64_fetch_add/acl_atomic_int64_add_fetch in acl_atomic.c 2019-07-09 23:13:42 +08:00
zhengshuxin
8280209e71 add acl_vstream_read_peek3 2019-07-08 22:08:26 +08:00
zhengshuxin
c5fbe9ede4 format c++ code style. 2019-07-07 13:27:58 +08:00
zhengshuxin
87c1bc8028 format c++ code style. 2019-07-07 11:00:12 +08:00
zhengshuxin
7f8f8bc29c http_request::request will set Content-Length of HTTP request HEAD according the data and len parameters. 2019-07-04 17:46:19 +08:00
zhengshuxin
190be40459 optimize HTTP module for supporting HTTP/1.1 2019-07-04 16:32:57 +08:00
zhengshuxin
16415d8333 format c++ code style. 2019-07-02 16:36:06 +08:00
郑树新
9e3bc921a2 fixed one compiling error for Android 2019-06-28 11:39:16 +08:00
郑树新
024f65bedd optimize compiling 2019-06-28 11:21:36 +08:00
zhengshuxin
382d69ab04 optimize conditional compiling 2019-06-28 10:54:27 +08:00
郑树新
cff0958e2c
Merge branch 'master' into master 2019-06-26 22:52:56 +08:00
zhengshuxin
1fb167d560 remove some useless comments 2019-06-24 11:58:19 +08:00
zhengshuxin
3bcd491cb4 fixed bug in http_request::get_body which will be crashed when out's type is string 2019-06-23 20:19:26 +08:00
meihouhao2017
0261775380 support PATCH method of http. 2019-06-18 11:00:58 +08:00
zsxxsz
cc202891ec compiling ok on Ubuntu12 32-bits 2019-06-17 22:31:43 +08:00
zsx
c1e3e2bbb0 add http_aclient class into xcode project. 2019-06-11 19:25:54 +08:00
zhengshuxin
c8e9497086 format c++ code style. 2019-06-17 10:51:28 +08:00
zhengshuxin
24bc9c085f optimize sample http_aclient_ssl 2019-06-13 22:05:25 +08:00
zhengshuxin
ab407a51dc http_header supports getting/setting cookies for request and response. 2019-06-12 23:25:35 +08:00
zhengshuxin
c774fd3a6d format c++ code style. 2019-06-12 23:12:31 +08:00
zhengshuxin
55e29c55b3 aio_istream/aio_ostream can be created with socket fd. 2019-06-11 23:16:03 +08:00
zhengshuxin
d4b6538dcd fixed bug in polarssl_io.cpp for static compiling 2019-06-11 17:00:54 +08:00