Commit Graph

521 Commits

Author SHA1 Message Date
zhengshuxin
e2fbd308cb add one sample for testing event timer module 2021-02-10 19:18:49 +08:00
zhengshuxin
f5bc676fbd optimize redis pipeline mode 2021-01-31 15:43:29 +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
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
zhengshuxin
7ffc5e9f92 optimize redis_pipeline 2021-01-01 20:35:07 +08:00
shuxin   zheng
0ac0d56bc8 fixed bug in samples/master/master_http_rpc demo. 2020-12-14 13:45:34 +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
zhengshuxin
c82d4ab07f add benchmark test for different json parsers. 2020-11-17 18:23:49 +08:00
shuxin   zheng
ea531338d6 format code style 2020-11-05 15:16:35 +08:00
shuxin   zheng
593fb7693d test fiber and dns 2020-10-22 10:59:12 +08:00
zhengshuxin
712f2c1781 don't warn when compiling fiber module 2020-09-26 23:45: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
e8445eb07e fixed bug for redis command "ROLE" in redis_role.cpp 2020-08-17 23:36:20 +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
郑树新
a6976962cd fixed compiling error by vc2012 2020-07-26 16:28:16 +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
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
88c756a462 fixed compiling error for samples with ssl 2020-07-16 09:12:39 +08:00
shuxin   zheng
7af9d5dec0 test ssl SNI 2020-07-02 15:44:44 +08:00
shuxin   zheng
e0d35f97b1 fixed one bugs in redis_hash.cpp demo 2020-06-02 12:40:00 +08:00
zhengshuxin
b5173f228f add HVALS command in redis_hash 2020-05-22 13:37:49 +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
d5e0e7d965 fixed bug in mbedtls_conf module and test redis with ssl ok. 2020-05-05 23:16:32 +08:00
shuxin   zheng
7378db23d9 fixed one bug in http_ctype.cpp 2020-04-06 18:25:19 +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
zsxxsz
ecba96a8fc fixed bug in project setting in DebugDll mode on vc2012 2020-02-16 20:24:08 +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
郑树新
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
56afc8cf80 compiling acl 2020-01-07 10:36:29 +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
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
shuxin   zheng
be1ff25ee1 test mbedtls 2019-12-20 15:08:36 +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
shuxin   zheng
6135813d6c add reactor mode for aio_listen_stream 2019-12-12 15:29:58 +08:00
zhengshuxin
8bc1bc4c44 add demo 2019-11-22 10:07:46 +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
zhengshuxin
970620ac85 add more log info for event 2019-09-08 21:17:46 +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
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
郑树新
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
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
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
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
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
zhengshuxin
d1c7ef9562 sample test 2019-08-08 17:57:45 +08:00
zhengshuxin
7667d4b031 add one async http client sample 2019-08-08 17:40:16 +08:00
zhengshuxin
7ded499111 url_coder supports value is NULL or empty 2019-08-08 16:13:05 +08:00
zhengshuxin
bdef51bfc1 modify sample 2019-08-07 22:00:22 +08:00
zhengshuxin
996b2647c9 samples/websocket: add one async websocket sample 2019-08-07 21:57:24 +08:00
zhengshuxin
bc2de9f4d1 fixed one bug of hdr_can_read() in http_chat_async.c that the connection should be closed when notify callback return -1. 2019-08-07 21:41:43 +08:00
zhengshuxin
34a6fce74a compiling error on macos 2019-08-07 14:36:09 +08:00
郑树新
9d0bfaa4e7 add vc project for http_request sample 2019-08-06 14:32:54 +08:00
郑树新
6c9a37e0d2 md5 sample can check one file's md5sum 2019-08-06 10:26:19 +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
郑树新
a1ec482d94 use acl::atomic_long in DLL on windows 2019-08-01 16:19:51 +08:00
郑树新
99c31ee130 compiling aio_client_ssl sample ok on windows. 2019-07-30 09:44:46 +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
郑树新
a62898e157 optimize jencode tool 2019-07-26 18:30:38 +08:00
zhengshuxin
b4991ecf2c modify wiredtiger sample 2019-07-24 16:12:22 +08:00
zhengshuxin
d71ebb011e modify test sample 2019-07-23 17:27:17 +08:00
zhengshuxin
92ad11180a polarssl_io can be deleted when reference is zero. 2019-07-12 11:05:17 +08:00
zhengshuxin
ee47b25cd3 format c code style. 2019-07-05 16:23:47 +08:00
zhengshuxin
123328c1af remove unused comments 2019-06-24 13:06:06 +08:00
zhengshuxin
1fb167d560 remove some useless comments 2019-06-24 11:58:19 +08:00
zhengshuxin
cecaee548e format c++ code style. 2019-06-16 20:10:40 +08:00
zhengshuxin
d764f984b7 fixed compiling problem for some samples. 2019-06-14 18:32:12 +08:00
zhengshuxin
24bc9c085f optimize sample http_aclient_ssl 2019-06-13 22:05:25 +08:00
zhengshuxin
55e29c55b3 aio_istream/aio_ostream can be created with socket fd. 2019-06-11 23:16:03 +08:00
zhengshuxin
2faca3ca82 modify http_aio_ssl sample 2019-06-11 09:37:23 +08:00
zhengshuxin
d51743d80b load libpolarssl.so in sample 2019-06-11 09:11:14 +08:00
zhengshuxin
8ab1c2fb6a http_aclient supports unzipping compressed data from server's response. 2019-06-10 16:08:21 +08:00
zhengshuxin
7ae938030e test websocket samples 2019-06-10 13:00:25 +08:00
zhengshuxin
7d252c27ad format c++ code style. 2019-06-09 12:03:10 +08:00
zhengshuxin
bf538f0eba redis ssl sample 2019-06-08 14:18:15 +08:00
zhengshuxin
d1afa2a2ed add sample redis_ssl for testing SSL communication with redis server. 2019-06-08 14:04:56 +08:00
zhengshuxin
624f828575 optimize http_aclient 2019-06-06 13:46:23 +08:00
zhengshuxin
3ffb819cd7 add one sample for testing http_aclient which support ssl in aio mode. 2019-06-05 17:45:12 +08:00
zhengshuxin
288986fdac optimize http module for http request 2019-06-04 14:51:21 +08:00
zhengshuxin
3a5d971336 acl_dbuf_pool.c: reserve another memory node for improving performance. 2019-06-02 23:18:08 +08:00
zhengshuxin
2f18ea1176 test dbuf_guard's bug 2019-05-31 19:17:12 +08:00
郑树新
9b4d238793 compiling ok on vc 2019-05-09 14:30:45 +08:00
zhengshuxin
8b77b0456a safety & feature: add nocopyable limit for many class to avoid potential problem 2019-05-09 13:57:51 +08:00
zhengshuxin
d62bb45cd6 tcp_keeper: fixed one bug in keeper_conn.cpp;
server_socket: remove one constructur method;
2019-04-28 16:17:17 +08:00
zhengshuxin
1f2fa117a2 add speed checking for wiredtiger sample 2019-04-24 16:32:54 +08:00
zhengshuxin
fb629f93bc modify sample's link lib 2019-04-17 11:42:37 +08:00
zhengshuxin
85a8557eba add benchmark for roccksdb and wiredtiger. 2019-04-04 13:23:22 +08:00
zhengshuxin
1771db6726 add sqlite benchmark testing case. 2019-04-01 15:20:19 +08:00
zsx
c0437bb1de add sample box which can use acl::mbox, acl::tbox and acl::tbox_array 2019-03-14 10:17:36 +08:00
zsx
0dfd2d45c7 add tbox_array.hpp and tbox sample. 2019-03-13 10:28:51 +08:00
zsx
c6743aaa7f acl_scan_dir.c: the current dir's attribute can be got in scanning process 2019-02-13 11:22:31 +08:00
zsx
22ab5bc69d add sample for scan&remove empty directory 2019-02-01 18:45:37 +08:00
zsx
64d1c2458b thread::start: add sync start thread way 2019-01-30 16:43:02 +08:00
zsx
e82b63b025 format code style 2018-12-12 11:16:12 +08:00
zsx
b3540ab5df sample 2018-12-06 17:04:08 +08:00
zsx
87ba2d6bbe WebSocketServlet sample 2018-12-06 16:29:54 +08:00
zsx
66a560e37f fixed bugs in client_wakeup of acl_threads_server.c;
acl::fiber_tbox and acl::fiber_cond are ok.
2018-12-06 15:50:13 +08:00
zhengshuxin
ff5bc053b9 redis_stream benchmark testing 2018-12-02 20:15:27 +08:00
zhengshuxin
7fbcd4d56b testing acl::redis_stream ok! 2018-12-02 14:58:41 +08:00
zhengshuxin
82f6c8cbee testging redis_stream 2018-12-01 18:58:04 +08:00
zhengshuxin
fafce8ce67 testing acl::redis_stream 2018-11-25 23:16:25 +08:00
zhengshuxin
f7af753d9e add one flag when creating fiber_event 2018-11-24 11:49:18 +08:00