Commit Graph

381 Commits

Author SHA1 Message Date
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
zsx
5641fc8e3f fixed one compiling problem of scan_dir sample 2018-11-16 11:20:06 +08:00
zhengshuxin
29b6fa01b5 check add json demo ok! 2018-11-15 23:05:00 +08:00
zhengshuxin
7b343621e0 after the connection with redis-server is created, the dbnum can be selected in acl::redis_client, acl::redis_client_pool. 2018-10-20 22:20:57 +08:00
zhengshuxin
f4ed8742fb fixed bugs in websocket::read_frame_data and WebSocketServlet.cpp. 2018-10-20 00:30:02 +08:00
zhengshuxin
b46fea21d4 add end_with in acl::string 2018-10-07 21:35:46 +08:00
zsxxsz
cb218497b6 add new flag to control if disable SO_REUSEADDR when binding the local
listening addr.
2018-09-22 09:40:33 +08:00
zsx
4969d4bed9 using if_nametoindex in acl_inet_pton 2018-09-17 13:11:47 +08:00
zsx
f27af8b424 acl support IPV6 is OK now! 2018-09-16 21:49:58 +08:00
zsx
f1737e7a92 fixed bugs in string::begih_with 2018-09-08 21:33:44 +08:00
zsx
ac3bcf1f98 fixed bugs in acl::string::begin_with API 2018-09-08 13:58:49 +08:00
zsx
2cd040b856 improvment the performance of acl::token_tree class;
add benchmark for token_tree.
2018-08-20 22:28:27 +08:00
zsx
92615556b4 there's some comments error in token_tree 2018-08-20 11:07:20 +08:00
zsx
03480089bc fixed some comiling errors. 2018-08-19 15:55:54 +08:00
zsx
6f18301ac8 add token_tree class for 256-fork matching tree;
format the files with DOS format.
2018-08-19 15:31:26 +08:00
zsx
a90ebcf86e there are some changes in the interfaces's meaning of thread_cond::wait, server_socket::accept. 2018-08-17 16:50:30 +08:00
郑树新
6176ef4b37 add on_connected/on_refused/on_timeout callbacks in connect_monitor 2018-06-04 18:00:32 +08:00
zsx
b501d19e1e sqlite lib upgrade to 3.23.1 version 2018-05-31 17:10:27 +08:00
zsx
485a13d722 add diff algorithm test sample 2018-04-19 15:25:03 +08:00
zhengshuxin
b1721868d6 sample 2018-03-26 08:56:37 +08:00
zsx
69b8095e48 add copy overriding in atomic_long 2018-03-20 11:54:58 +08:00
zsxxsz
919aabfa9c add redis_sentinel class in redis module 2018-03-18 23:43:31 +08:00
SorataKasugano
d06cfbdb8d
添加host头域
这个样例不太严谨,没有正确添加host头域到header中,sina返回状态码必然是400。
set_url函数里面没有关于相对路径的host头域处理,可能是疏忽了?
2018-02-12 18:52:51 +08:00
zsxxsz
6d9add27bd bugfix in lib_acl: POLLHUP | POLLERR should not be set as input parameters. 2018-02-03 21:27:21 +08:00
郑树新
fa7a71f2fb fiber: add iocp event 2018-01-30 19:57:51 +08:00
zsx
57892d3ed0 compile caharset sample error on macos 2017-12-25 13:57:23 +08:00
zsx
10a3f25932 remove one 4.eml file of mime testing because someone thinks it has virus 2017-12-21 18:59:49 +08:00
zsx
fa113a12e7 acl stream and servers support UNIX domain socket in UDP packet mode 2017-12-10 22:23:37 +08:00
zhengshuxin
1050d4e45f event_mutex: add event_mutex sample in fiber mode; testing event_mutex ok in threads & fibers running modes. 2017-10-08 00:06:12 +08:00
zhengshuxin
03c4161e6b add samples event_mutex to test event_mutex in lib_acl_cpp 2017-10-06 23:07:39 +08:00
zsxxsz
27fefa695c fixed compiling error of demos on windows by vc2008 2017-09-04 23:22:35 +08:00
zsxxsz
4afb237dd9 fixed compiling error by vc 2017-09-02 09:42:11 +08:00
zhengshuxin
5291cd0c7a test only 2017-09-01 18:59:42 +08:00
zhengshuxin
59a7899fa3 add acl::thread_cond testing in sample thread 2017-08-22 15:27:37 +08:00
zhengshuxin
8f58d773b4 add atomic operation and modify vc projects for adding atomic class. 2017-08-18 22:55:31 +08:00
zhengshuxin
dcaec58d47 add sample tcp_server & tcp_client in lib_fiber. 2017-08-09 16:04:54 +08:00
zhengshuxin
d74d97e3b7 add tcp_pool's samples in Makefile 2017-08-09 11:59:11 +08:00
zhengshuxin
e981079948 tcp_client sample compiling error. 2017-08-09 11:51:53 +08:00
zhengshuxin
368b530f7e getopt.h should be included. 2017-08-09 11:43:32 +08:00
zhengshuxin
ff985ba347 add samples in tcp_pool path for testing the tcp_pool module 2017-08-09 10:11:22 +08:00
zhengshuxin
b48627f168 add -ldl in some Makefile.in 2017-08-07 12:04:56 +08:00