Commit Graph

1146 Commits

Author SHA1 Message Date
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
shuxin   zheng
6e7ddc42d3 add "acl_" prefix for some ".c" files to avoid compiling warning for same files collision. 2020-07-22 17:50:56 +08:00
zhengshuxin
cd5f386e7c test aio timer 2020-07-21 18:06:12 +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
zhengshuxin
88c756a462 fixed compiling error for samples with ssl 2020-07-16 09:12:39 +08:00
zhengshuxin
71255d1f5d add one demo written by c++11 2020-07-06 16:02:08 +08:00
shuxin   zheng
5a75632cca fixed compiling warning for invalid comments 2020-07-03 15:09:45 +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
41ef6fef8f use remote_addr@local_addr replacing the old format: local_addr@remote_addr 2020-06-27 14:01:13 +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
a6d6da5e29 disable mem debug default 2020-06-13 10:55:25 +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
shuxin   zheng
e0d35f97b1 fixed one bugs in redis_hash.cpp demo 2020-06-02 12:40:00 +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
ba26b15032 export bmp_ in bitmap 2020-05-19 18:20:48 +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
zhengshuxin
8fb50aa0e6 build ok with different gcc version 2020-05-13 15:42:50 +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
zhengshuxin
81b2131885 test websocket 2020-05-08 22:35:13 +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
3d7737628f fixed compiling warning by xcode 2020-05-07 10:55:14 +08:00
shuxin   zheng
2507cab804 test redis ssl ok 2020-05-05 23:25:02 +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
328d0e9c3e modify build gradle for different NDK version. 2020-04-29 18:31:16 +08:00
shuxin   zheng
880f7e75f8 format code 2020-04-15 08:54:46 +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
zsxxsz
ecba96a8fc fixed bug in project setting in DebugDll mode on vc2012 2020-02-16 20:24:08 +08:00
zhengshuxin
f64fc98df7 Merge branch 'master' into github-zsx-master 2020-02-16 13:41:04 +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
95883c415f fixed compiling waring on MacOS 2020-02-15 19:26:41 +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
郑树新
6cccb347f4 add mbedtls for vc2015/vc2018 2020-01-09 09:33:14 +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
shuxin   zheng
b3428a89ed test ssl_server demo 2020-01-07 18:45:52 +08:00
zhengshuxin
1d226a31ab test mbedtls 2020-01-07 18:41:38 +08:00
zhengshuxin
b8f74995dd test mbedtls demo 2020-01-07 18:41:01 +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
zhengshuxin
56afc8cf80 compiling acl 2020-01-07 10:36:29 +08:00
shuxin   zheng
a0a8a0ef4c compiling mbedtls for vc 2020-01-07 09:18:57 +08:00
shuxin   zheng
07d706f68c test ssl 2020-01-06 17:51:33 +08:00
zhengshuxin
045ff7a5da test ssl demo 2020-01-06 15:50:03 +08:00
shuxin   zheng
4a7dce51ba acl::mbedtls_conf can load three mbedtls dynamic libs 2020-01-06 15:29:03 +08:00
shuxin   zheng
85cec4e57b test ssl sample 2020-01-05 15:41:08 +08:00
shuxin   zheng
ddede82757 add demo shell 2020-01-05 10:37:09 +08:00
shuxin   zheng
952a610187 test ssl demos 2020-01-05 10:32:38 +08:00
zhengshuxin
7f851cc437 test mbedtls ok! 2020-01-03 17:01:51 +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
zhengshuxin
843001eac0 fixed compiling error 2020-01-02 23:57:15 +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
shuxin   zheng
2d1ac25684 changes acl_pthread_cond_t for compiling with other library 2019-12-17 13:20:55 +08:00
zhengshuxin
abde661bf6 test websocket 2019-12-13 16:46:28 +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
49ef1a29a8 add comments 2019-12-12 10:57:29 +08:00
shuxin   zheng
a102fba468 fixed bug in frame_header for init 2019-12-10 13:31:07 +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
83f6022f7c use ndk-build to build for Android ndk 2019-11-22 17:03:05 +08:00
shuxin   zheng
93f9d6eb83 build for ndk9d ok by using *.mk for Android 2019-11-22 16:14:20 +08:00
zhengshuxin
8bc1bc4c44 add demo 2019-11-22 10:07:46 +08:00
shuxin   zheng
03c4c9de7c add -flto=thin for xcode 2019-11-19 11:38:04 +08:00
shuxin   zheng
262c025505 optimize libs' size for ios 2019-11-12 18:10:26 +08:00
shuxin   zheng
fba11d437e fixed comments error 2019-11-09 22:39:43 +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
shuxin   zheng
fcefb9a217 add -g when builing by cmake 2019-11-01 11:09:20 +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
shuxin   zheng
a67ad8cf1a build for xcode 2019-10-28 18:20:36 +08:00
shuxin   zheng
98a1e650b6 optimize size for ios 2019-10-25 16:11:15 +08:00
shuxin   zheng
bfdf0e600c optimize size for IOS 2019-10-25 15:21:42 +08:00
zhengshuxin
5f415f1302 add ssl enable/disable switch for http_aclient 2019-10-18 10:03:52 +08:00
zhengshuxin
76ba04380d add ssl enable/disable switch for http_aclient 2019-10-18 10:02:22 +08:00
shuxin   zheng
2998681abc build shared acl can be set from cmake args 2019-10-17 16:58:44 +08:00
郑树新
6aeeb6dc8c optimize cmake for Android Studio that can use c++_shared and gnustl_shared 2019-10-17 16:39:52 +08:00
shuxin   zheng
d3ab857d3b optimize projects for xmake and cmake 2019-10-15 16:52:02 +08:00
ruki
1c0ff5d208 update xmake.lua: export public includedirs 2019-10-14 09:34:37 +08:00
zhengshuxin
68add9648d build acl by xmake 2019-10-13 16:02:18 +08:00
zhengshuxin
8d4dff9f18 building with xmake 2019-10-08 16:36:16 +08:00
shuxin   zheng
a26e39e27b Merge https://github.com/acl-dev/acl into HEAD 2019-10-04 11:32:40 +08:00
shuxin   zheng
d7978bcae5 optimize acl project 2019-10-04 11:31:08 +08:00
shuxin   zheng
8110358e94 optimize CMakeLists 2019-10-01 17:49:11 +08:00
shuxin   zheng
fbc9ee585e optimize libs size building by xcode 2019-10-01 16:08:38 +08:00
shuxin   zheng
f66472cadf optimize compiling options 2019-09-30 15:05:20 +08:00
shuxin   zheng
60f98235cd optimize libs size 2019-09-30 14:59:26 +08:00
shuxin   zheng
3a956421c0 merge acl 2019-09-30 14:23:47 +08:00
shuxin   zheng
63181608f4 optimize libs size for MacO 2019-09-30 14:19:27 +08:00
shuxin   zheng
7a411a53dd optimize libs size for IOS/Macos 2019-09-30 11:46:56 +08:00
zhengshuxin
518e2ad896 format CMakeLists 2019-09-24 15:01:27 +08:00
shuxin   zheng
2179f6880a just add '-fvisibility=hidden' for android in order to decrease lib's size 2019-09-24 11:21:36 +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
09d7897e8a optimize libs' size 2019-09-19 09:00:59 +08:00
shuxin   zheng
5a741c439d add conditional compiling for SSL in http_aclient 2019-09-18 21:15:24 +08:00
zhengshuxin
17de548adb optmize cmake files to decrease lib's size 2019-09-18 17:10:49 +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
郑树新
8cd92eadf8 fixed one compiling error by vc 2019-09-17 11:29:06 +08:00
shuxin   zheng
18e71af9df add waiting timeout for redis_pubsub::get_message() 2019-09-16 22:31: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
shuxin   zheng
d1fb7e888a fixed parameters comments warning in headers found by xcode 2019-09-13 19:47:23 +08:00
shuxin   zheng
152415550b upgrade xcode projects of acl 2019-09-13 17:06:46 +08:00
zhengshuxin
970620ac85 add more log info for event 2019-09-08 21:17:46 +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
a3ce17dcc1 modify CMakeLists for building release version 2019-09-06 11:27:36 +08:00
zhengshuxin
1980455b7c fixed bug in http_aclient_ssl sample. 2019-09-03 13:15:41 +08:00
zhengshuxin
2b1ccf767c sample/aio/http_client supports HTTP url redirect. 2019-08-28 14:55:47 +08:00
zhengshuxin
a87c8d046c support 302, 301 redirect in http module 2019-08-28 11:18:18 +08:00
郑树新
e28e64c422 build ok by Android studio. 2019-08-27 15:18:31 +08:00
zhengshuxin
fce6ab6d2b add error info when socket operations were failed. 2019-08-23 21:20:47 +08:00
zhengshuxin
b601b629e5 add acl::acl_cpp_init() for some samples which were needed by Windows OS. 2019-08-23 21:16:45 +08:00
zhengshuxin
3295c10aea compiling http_client sample ok on Linux 32 bits 2019-08-23 02:42:30 -07:00
zhengshuxin
3a362e1cee change http_client sample 2019-08-23 16:28:00 +08:00
zhengshuxin
3eea42ca8a modify http_client sample 2019-08-23 15:12:19 +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
郑树新
112e319476 support building static lib on Android studio. 2019-08-21 17:35:56 +08:00
zhengshuxin
7ef4374a46 change CMakeLists to build for Android 2019-08-21 10:15:08 +08:00
zhengshuxin
56f66e2688 optimize class variables to decrease the size of class object. 2019-08-20 17:17:37 +08:00
root
72a5287da5 add memory using debug info. 2019-08-16 18:17:11 +08:00
shuxin   zheng
84ab91ca36 optimize samples 2019-08-14 16:36:23 +08:00
shuxin   zheng
907466e99b sample http_client 2019-08-14 15:46:08 +08:00
zhengshuxin
3be918e8c1 add one sample for testing connect with same port in one machine. 2019-08-14 10:56:27 +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
e53326af9d DNS searching function acl_dns_lookup() in acl_dns.c can send query to multiple DNS and use the first reached result. 2019-08-12 21:49:43 +08:00
zhengshuxin
7d97aaca6f add test case for building binary with minimal size 2019-08-12 17:09:32 +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
9d891a9b79 websocket sample testing 2019-08-09 21:39:52 +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
shuxin   zheng
c55d1badc7 modify sample 2019-08-09 13:26:56 +08:00
shuxin   zheng
922784168d fixed one bug in events_kqueue.h for time interval computing 2019-08-09 11:26:51 +08:00
zhengshuxin
9b0c1cc233 test http_client sample 2019-08-08 18:03:33 +08:00