Commit Graph

934 Commits

Author SHA1 Message Date
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
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
郑树新
d9e2cf574a add get_status() method in http_header.hpp for getting the http response
status from http server
2019-08-07 17:16:14 +08:00
zhengshuxin
34a6fce74a compiling error on macos 2019-08-07 14:36:09 +08:00
zhengshuxin
1eadcff994 fixed compiling error when using polarssl with static library 2019-08-06 18:23:32 +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
郑树新
272727f104 add ACL_CPP_API on acl::atomic 2019-08-01 16:27:02 +08:00
郑树新
a1ec482d94 use acl::atomic_long in DLL on windows 2019-08-01 16:19:51 +08:00
zhengshuxin
d8d624ee98 use utf8 for text files. 2019-07-30 23:52:48 +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
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
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
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
ee47b25cd3 format c code style. 2019-07-05 16:23:47 +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
郑树新
71980ea862 optimize builing for Android 2019-06-28 16:36:00 +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
zhengshuxin
b2b3cdae9a Merge branch 'master' into github-zsx-master 2019-06-26 22:57:56 +08:00
郑树新
cff0958e2c
Merge branch 'master' into master 2019-06-26 22:52:56 +08:00
zhengshuxin
1a3adc67ef add features in todo 2019-06-25 10:54:55 +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
996574d860 add more comments for http_client 2019-06-23 20:56:49 +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
zhengshuxin
3ea584f752 Merge branch 'master' of github:zhengshuxin/acl into github-zsx-master 2019-06-20 18:00:41 +08:00
zhengshuxin
f0bcc98a1e acl::string supports concatenating multiple string or object of POD type. 2019-06-20 17:54:22 +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
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
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
zhengshuxin
8d73223341 fixed bug in websocket::send_frame_pong 2019-06-11 15:06:47 +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
00b5d2edaa change comments' charset from utf-8 to gbk to avoid VC compiling warning. 2019-06-10 16:40:12 +08:00
zhengshuxin
fae5f0aee6 format c++ code style. 2019-06-10 16:34:23 +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
16f37938b0 add websocket supporting in http_aclient 2019-06-09 22:46:07 +08:00
zhengshuxin
7d252c27ad format c++ code style. 2019-06-09 12:03:10 +08:00
zhengshuxin
8d3fc7e755 format c++ code style. 2019-06-08 22:37:04 +08:00
zhengshuxin
bf538f0eba redis ssl sample 2019-06-08 14:18:15 +08:00
zhengshuxin
132322015f SSL communication has been supported in redis client module. 2019-06-08 14:06:22 +08:00
zhengshuxin
d1afa2a2ed add sample redis_ssl for testing SSL communication with redis server. 2019-06-08 14:04:56 +08:00
zhengshuxin
1958bb4229 optimize http_aclient and websocket 2019-06-06 23:43:04 +08:00
zhengshuxin
624f828575 optimize http_aclient 2019-06-06 13:46:23 +08:00
zhengshuxin
f695bf2381 add http_aclient into vcs' projects. 2019-06-05 18:12:18 +08:00
zhengshuxin
88b60dfa8a http_aclient ok! 2019-06-05 17:48:52 +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
7d85364bc6 add http_aclient for getting http response from webserver in aio mode. 2019-06-05 17:36:47 +08:00
zhengshuxin
288986fdac optimize http module for http request 2019-06-04 14:51:21 +08:00
zhengshuxin
55bfff7b18 fixed compiling problem for charset_conv.cpp on different OS. 2019-06-04 14:50:28 +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
zhengshuxin
7a22252ab2 remove noncopyable from dbuf_guard/dbuf_pool 2019-05-31 18:34:28 +08:00
zhengshuxin
af4182b88e build ok on Linux 2019-05-27 12:16:13 +08:00
郑树新
b20b7bacb7 db module support getting length of field value 2019-05-27 12:11:30 +08:00
郑树新
32c8564bbb optimize compiling size of package for Android 2019-05-20 11:09:05 +08:00
zhengshuxin
b1b7d08a0c compiling optimization to get smaller library's size 2019-05-19 16:54:20 +08:00
zhengshuxin
b71b8840bf replace assert with abort 2019-05-18 22:03:53 +08:00
zsxxsz
53583d8a9d add compiling macro option ACL_CLIENT_ONLY to decrease the library's size for
client software.
2019-05-18 21:19:21 +08:00
zhengshuxin
0c89422256 redis_stream.cpp: optimize READGROUP/XREAD commands. 2019-05-14 11:28:55 +08:00
zhengshuxin
70d46d567b XREADGROUP/XREAD should be blocked when block is 0 2019-05-14 11:13:49 +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
zsxxsz
ede94861d2 add zpopmin/zpopmax/bzpopmin/bzpopmax in redis_redis 2019-04-27 21:23:12 +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
zhengshuxin
b41612415c add comments 2019-03-28 11:18:10 +08:00
郑树新
75382fd8fd Merge branch 'master' into 'master'
Compatible with application/json and application/xml in http

See merge request !4
2019-03-14 16:17:39 +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
a5fd4abdb9 release acl 3.5.0! 2019-03-09 20:23:08 +08:00
zsx
71fc7510a2 prepare for releasing acl 3.4.2 version! 2019-03-09 14:12:34 +08:00