Commit Graph

753 Commits

Author SHA1 Message Date
shuxin   zheng
df5562cb45 make event timer more safety when user can cancel another timer in one timer. 2020-08-11 17:21:57 +08:00
shuxin   zheng
88182f8c4f test event timer 2020-08-11 17:21:04 +08:00
shuxin   zheng
3a54a1e83c fp->read_ready should be set 0 in acl_file_read 2020-08-11 17:20:22 +08:00
shuxin   zheng
f04e7c4d50 format code 2020-08-11 17:20:08 +08:00
shuxin   zheng
8011acd6d8 format code 2020-08-11 14:43:34 +08:00
shuxin   zheng
9b6bebda02 format code 2020-08-11 14:40:17 +08:00
shuxin   zheng
37b751be64 format code style. 2020-08-11 14:24:18 +08:00
zhengshuxin
d800ca468e use MD compiling options for all vc projects 2020-08-06 15:42:37 +08:00
unknown
556ec95a93 modify projects 2020-08-06 14:13:31 +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
shuxin   zheng
84b4969dd7 test cache2 demo 2020-07-16 12:27:14 +08:00
zhengshuxin
9fc01c5d9b don't fatal when input is invalid in acl_aio.c 2020-07-16 11:52:23 +08:00
shuxin   zheng
2e70cef3e7 don't warn in acl_atomic.c for MacOS 2020-07-13 16:05:14 +08:00
zhengshuxin
957e18a8c8 test ACL_CACHE2 iterator 2020-07-07 18:23:20 +08:00
shuxin   zheng
f3f8cc2219 markmeson added WSAPoll for vc2003 2020-07-06 18:23:33 +08:00
郑树新
6b76350e72
Merge pull request #15 from markmeson/wsapoll
Add WSAPoll for pre-Vista Windows
2020-07-06 18:07:35 +08:00
shuxin   zheng
f739ddd36a fixed one compiling error for Windows 2020-07-06 15:39:53 +08:00
shuxin   zheng
a6f59e8e7e fixed one bug in connect_timeout/connect_failed in acl_aio_connect.c when retrying to connect. 2020-07-03 17:54:10 +08:00
shuxin   zheng
3e15a68dc4 don't use atomic for IOS and MacOS as default becase some lower OS version don't support. 2020-07-03 11:29:04 +08:00
shuxin   zheng
a409da3010 add SNI support in mbedtls module 2020-07-01 16:45:26 +08:00
shuxin   zheng
050f756d43 fixed bug in acl_dns.c for crashing when socket was closed. 2020-07-01 15:57:57 +08:00
shuxin   zheng
6676fa22d1 atomic can be suitble for more platform. 2020-06-28 15:52:24 +08:00
shuxin   zheng
2bb6cfe44c release 3.5.1-5 version 2020-06-27 14:13:48 +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
aac585e095 don't crach in event_limit() from acl_events.c when acl_open_limit() < 0 2020-06-23 12:51:41 +08:00
zhengshuxin
69d8baf06c release 3.5.1-4 for the new rpm package 2020-06-05 18:15:34 +08:00
shuxin   zheng
37ae5c4ba7 don't use POLLPRI when calling poll API on Windows. 2020-06-02 09:15:58 +08:00
markmeson
9d4f9350e8 Add WSAPoll for pre-Vista Windows 2020-05-31 18:30:57 -04:00
zhengshuxin
914bfb6aea optimize iocp events 2020-05-29 11:23:23 +08:00
shuxin   zheng
79317f0965 change compiling flag "-Wno-extended-offsetof" to "-Wno-invalid-offsetof" for clang 2020-05-19 09:28:57 +08:00
zhengshuxin
8fb50aa0e6 build ok with different gcc version 2020-05-13 15:42:50 +08:00
zhengshuxin
81ad67eb78 build lib_acl by cmake ok 2020-05-13 00:01:46 +08:00
shuxin   zheng
e99003e472 keep compiling symbols for ndk16 2020-05-08 15:18:55 +08:00
shuxin   zheng
3d7737628f fixed compiling warning by xcode 2020-05-07 10:55:14 +08:00
zhengshuxin
1f53d1370c build for different linux platform 2020-05-04 21:05:40 +08:00
shuxin   zheng
99c94a9366 comiling acl workaround 2020-04-30 18:26:25 +08:00
shuxin   zheng
534917ad73 don't call fatal when some error happens for aio listener. 2020-04-28 17:42:51 +08:00
shuxin   zheng
4dcc370364 format code style 2020-04-28 17:27:56 +08:00
zhengshuxin
4c55c77ed5 add setuid demo 2020-04-17 10:26:53 +08:00
shuxin   zheng
06bbbbf9a6 acl_get_ifaddrs can work on MacOS 2020-04-16 14:22:53 +08:00
shuxin   zheng
6755d9b670 modify project for Android with lower ndk9 version 2020-04-11 12:08:45 +08:00
shuxin   zheng
1f1321d0d1 add context object in ACL_CACHE2 2020-03-25 20:55:12 +08:00
shuxin   zheng
0caea1ffbb build for Android with gnustl_shared. 2020-03-23 22:30:47 +08:00
zhengshuxin
642fa6b875 optimize acl_cache2 2020-02-24 17:19:09 +08:00
shuxin   zheng
95883c415f fixed compiling waring on MacOS 2020-02-15 19:26:41 +08:00
zhengshuxin
7ceccccba0 release 3.5.1-1 2020-01-12 22:28:37 +08:00
zhengshuxin
467664ed02 release acl 3.5.1 version 2020-01-09 10:48:04 +08:00
zhengshuxin
8116419635 release acl 3.5.0-12 version 2020-01-09 10:13:17 +08:00
zsxxsz
7d7381f960 compiling ok by vc2003 2020-01-09 00:04:02 +08:00
shuxin   zheng
4a7dce51ba acl::mbedtls_conf can load three mbedtls dynamic libs 2020-01-06 15:29:03 +08:00
shuxin   zheng
59955b5b23 test acl using mbedtls ok! 2020-01-02 23:29:06 +08:00
shuxin   zheng
1e9faa3676 fixed bugs in rfc1035MessageDestroy of rfc1035.c for double free memory. 2019-12-30 09:58:52 +08:00
zhengshuxin
b8bea4c9ae fixed one compiling error in acl_vstream_net.c 2019-12-18 21:48:28 +08:00
shuxin   zheng
2d1ac25684 changes acl_pthread_cond_t for compiling with other library 2019-12-17 13:20:55 +08:00
shuxin   zheng
994a27c7e9 add more safety protection for dns module 2019-12-16 10:43:50 +08:00
zhengshuxin
a83fe47217 abstract unix domain socket is ok for Linux 2019-12-11 14:07:09 +08:00
zhengshuxin
7ba1dd499f support Linux abstract unix domain socket 2019-12-11 10:46:22 +08:00
郑树新
92265d2abf fixed bugs for windows 2019-11-28 16:02:17 +08:00
zhengshuxin
756d6ebb07 compile warn for code charset 2019-11-28 10:31:08 +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
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
c3373e8b61 remove ACL_CLIENT_ONLY compiling condition in acl_aio.c 2019-11-09 23:02:02 +08:00
shuxin   zheng
74d9f5aabb format code. 2019-11-09 23:00:28 +08:00
shuxin   zheng
4f700a849f fd limits set to a large value for Android other the fixed value 1024 2019-11-05 13:21:20 +08:00
shuxin   zheng
ebbc9a1ac3 fixed bugs for Android ndk r16b when using atomic in acl_atomic.c 2019-11-01 18:01:38 +08:00
shuxin   zheng
fcefb9a217 add -g when builing by cmake 2019-11-01 11:09:20 +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
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
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
zhengshuxin
f2745be77d cmake ok for Linux 2019-10-01 16:39:00 +08:00
shuxin   zheng
fbc9ee585e optimize libs size building by xcode 2019-10-01 16:08:38 +08:00
shuxin   zheng
60f98235cd optimize libs size 2019-09-30 14:59:26 +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
shuxin   zheng
28015b043f add lost files for xcode project 2019-09-20 22:59:26 +08:00
shuxin   zheng
09d7897e8a optimize libs' size 2019-09-19 09:00:59 +08:00
zhengshuxin
17de548adb optmize cmake files to decrease lib's size 2019-09-18 17:10:49 +08:00
shuxin   zheng
6d278d53b1 fixed parameters comments in headers found by xcode 2019-09-13 19:50:34 +08:00
shuxin   zheng
d1fb7e888a fixed parameters comments warning in headers found by xcode 2019-09-13 19:47:23 +08:00
shuxin   zheng
e9acc88c68 fixe one compiling warning 2019-09-13 17:13:02 +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
a3ce17dcc1 modify CMakeLists for building release version 2019-09-06 11:27:36 +08:00
郑树新
e28e64c422 build ok by Android studio. 2019-08-27 15:18:31 +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
12fe436211 change CMakeLists 2019-08-21 10:56:43 +08:00
zhengshuxin
7ef4374a46 change CMakeLists to build for Android 2019-08-21 10:15:08 +08:00
zhengshuxin
de5454ed58 add range when walking through fds in events to avoid costing much time. 2019-08-19 15:42:30 +08:00
zhengshuxin
bd4ea69bcd unlock first before lock in fork_prepare() in acl_mylog.c 2019-08-19 15:35:55 +08:00
root
72a5287da5 add memory using debug info. 2019-08-16 18:17:11 +08:00
zhengshuxin
e774daeab4 SO_REUSEADDR can used in inet_connect_one() for client connection. 2019-08-16 11:13:09 +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
25aee77809 taskq sample is ok 2019-08-11 15:49:11 +08:00
shuxin   zheng
639501690a some samples can't run on MacOS 2019-08-11 15:22:10 +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
0957cb2fd5 acl_mylog.c: fork_in_child() using thread_mutex_unlock other than init_log_mutex 2019-08-06 14:52:31 +08:00
zhengshuxin
8360da2485 fixed one bug in acl_mylog.c 2019-08-06 14:09:30 +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
bb736a7d7a format code. 2019-08-01 11:17:30 +08:00
zhengshuxin
d8d624ee98 use utf8 for text files. 2019-07-30 23:52:48 +08:00
zhengshuxin
f634862921 add benchmark for task queue, taskq is from TDEngine. 2019-07-30 18:15:11 +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
郑树新
649b94dc41 format source code's charset 2019-07-26 17:27:39 +08:00
郑树新
e521847d3f optimize Jencode APP 2019-07-26 16:09:45 +08:00
郑树新
55002badee fixed bug in acl_vstream_clean_close_handle() where dead loop will happen. 2019-07-26 16:09:08 +08:00
zhengshuxin
926b0f2c71 modify json sample 2019-07-21 20:08:51 +08:00
zhengshuxin
cb92a8ccf2 modify one json sample 2019-07-21 11:47:59 +08:00
zsxxsz
6525ffd92f fixed bug in acl_vstream_read_peek3 when double reading data 2019-07-10 21:36:00 +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
0ffd933de4 acl_vstream_read_peek3 can read data to userspace buffer to decrease the data copying times. 2019-07-09 10:25:22 +08:00
zsxxsz
8117eb885e fixed compiling warning on Windows. 2019-07-08 22:28:47 +08:00
zhengshuxin
8280209e71 add acl_vstream_read_peek3 2019-07-08 22:08:26 +08:00
zhengshuxin
fa7178af12 format c code style. 2019-07-08 17:48:41 +08:00
zhengshuxin
ee47b25cd3 format c code style. 2019-07-05 16:23:47 +08:00
郑树新
71980ea862 optimize builing for Android 2019-06-28 16:36:00 +08:00
zhengshuxin
382d69ab04 optimize conditional compiling 2019-06-28 10:54:27 +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
zsxxsz
cc202891ec compiling ok on Ubuntu12 32-bits 2019-06-17 22:31:43 +08:00
zhengshuxin
832d236f27 merge request for fixing bug in get_buf() of acl_mylog.c 2019-06-13 09:39:51 +08:00
moehuster
ccc33a1317 Missing line breaks when log msg's length less than 1024 2019-06-11 15:36:05 +08:00
zhengshuxin
88b60dfa8a http_aclient ok! 2019-06-05 17:48:52 +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
292287dd77 acl_aio_read_peek/acl_aio_readn_peek using count to save the data's length in each reading. 2019-06-05 16:18:45 +08:00
zhengshuxin
3a5d971336 acl_dbuf_pool.c: reserve another memory node for improving performance. 2019-06-02 23:18:08 +08:00
zhengshuxin
f7fc953fe0 fixed compiling error on windows 2019-05-28 11:49:43 +08:00
zhengshuxin
0f8e4b8a61 acl_aio_connect.c: retry connecting multiple addrs is ok 2019-05-27 11:15:45 +08:00
zhengshuxin
2881e8dff4 acl_aio_connect.c: support try to connect multiple IPs resolved until one was connected successfully. 2019-05-26 23:55:02 +08:00
zhengshuxin
1a88d6155c add http client for request async. 2019-05-24 18:12:08 +08:00
zhengshuxin
ec6462f3e6 aio connect support resolving domain name async. 2019-05-24 16:59:47 +08:00
zhengshuxin
56004197a3 add one aio connect sample 2019-05-24 16:59:26 +08:00
郑树新
32c8564bbb optimize compiling size of package for Android 2019-05-20 11:09:05 +08:00