Commit Graph

935 Commits

Author SHA1 Message Date
zhengshuxin
0b76431269 rename the old function acl_getsocktype to acl_getsockfamily and add the new acl_getsocktype 2021-11-09 22:00:57 +08:00
zhengshuxin
3001daf1b5 reserve enough memory space for acl_aio_readn() 2021-11-01 11:12:56 +08:00
zhengshuxin
07b4daf906 release 3.5.3-3 for one crashed bug fixed. 2021-10-27 17:09:46 +08:00
zhengshuxin
f5e6255ab2 fixed bugs when connecting server with one numric IP addr where the addrinfo not inited. 2021-10-27 17:06:01 +08:00
zhengshuxin
cfed77c897 optimize some macro for ACL_VSTREAM 2021-10-27 15:29:27 +08:00
郑树新
2fac0429ec don't use static variable in acl_vstream.c when acl is used by two or more dll. 2021-10-27 15:01:31 +08:00
zhengshuxin
8e023c745a Add new function for getting the length of the sending queue in aio module. 2021-10-26 16:48:58 +08:00
zhengshuxin
8a7ca5b338 The eventp->timers should be freed in event_timer_free(). 2021-10-26 16:27:16 +08:00
moehuster
3463e6ecd1 Feature: add linux-aarch64 support 2021-10-22 11:03:00 +08:00
zhengshuxin
3fff0e896d add some log for acl_udp_server.c 2021-10-21 18:29:16 +08:00
zhengshuxin
1a35c94530 fixed one corrupt bug occasionally in acl_udp_server.c 2021-10-21 17:43:30 +08:00
shuxin   zheng
5201a2e8fc optimize name resolving in acl_inet_timed_connect() API. 2021-10-19 10:49:15 +08:00
郑树新
ebfa913de8 optimize address resolving for acl_inet_connect() API. 2021-10-18 17:27:05 +08:00
shuxin   zheng
d96c52f6a6 optimize acl_inet_timed_connect() that don't resolve address from DNS when the given address is numeric address. 2021-10-18 16:59:15 +08:00
zhengshuxin
6a6952c416 release 3.5.3-1 version 2021-10-14 09:11:58 +08:00
zhengshuxin
0cdb975a26 build ... 2021-10-12 18:02:36 +08:00
郑树新
72d6b1f0fc optimize and test iocp of fiber module. 2021-10-12 18:01:04 +08:00
zhengshuxin
44ff4a5c91 add acl_sane_bind() 2021-10-12 17:46:00 +08:00
zhengshuxin
b7ecc6b8a9 add configure item for if enable monitor netlink in acl_udp_server.c 2021-10-12 14:56:07 +08:00
zhengshuxin
667c2f27f0 optimize building by ndk-build 2021-09-28 15:49:15 +08:00
shuxin   zheng
5c96afd9ce optimize code 2021-09-24 09:10:14 +08:00
shuxin   zheng
d2d376ce73 optimize socketpair 2021-09-24 08:57:02 +08:00
郑树新
b87c0f43d1 optimize socketpair for windows 2021-09-23 22:40:09 +08:00
郑树新
cde03a74d4 optimize vs projects 2021-09-16 19:27:09 +08:00
郑树新
c0719a1b2e optimize vc projects 2021-09-14 18:34:21 +08:00
shuxin   zheng
e371cba331 format code 2021-09-11 15:48:21 +08:00
郑树新
a8086534c3 optimize and test socketpair for windows 2021-09-09 11:23:05 +08:00
shuxin   zheng
a1d5eb509a optimize socketpair API for windows 2021-09-09 11:07:44 +08:00
郑树新
ce60ce7150 fixed bug in acl_atomic.c and atomic.c 2021-08-25 16:28:07 +08:00
郑树新
ff71cebfae test fiber on windows 2021-08-23 11:21:59 +08:00
郑树新
9d3f6d5cfd test API hook for fiber module on Windows platform. 2021-08-22 23:15:38 +08:00
shuxin   zheng
8e7a26cc8a upgrade version info 2021-08-20 17:28:45 +08:00
郑树新
04aaede734 optimize fiber module by hooking system API on windows 2021-08-19 21:45:41 +08:00
郑树新
2d04980910 optimizing fiber module 2021-08-18 16:07:35 +08:00
zhengshuxin
5e18c5a939 fixed bug where memory leaking happened that rnd_ should be freed in mbedtls_conf::~mbedtls_conf() 2021-08-12 13:38:17 +08:00
shuxin   zheng
4c77dbae17 pollfd be set should in loop which maybe more safety. 2021-08-10 16:51:02 +08:00
shuxin   zheng
13fc004f04 optimize acl_read_poll_wait() for MacOS with slice timed waiting. 2021-08-10 11:16:05 +08:00
shuxin   zheng
e6a8935111 make acl_msg.c more safety by add va_copy() macro 2021-07-16 11:02:11 +08:00
zhengshuxin
8dd1d0a329 modify time stamp in acl_init.c 2021-07-13 16:18:46 +08:00
郑树新
6a1c34168f build acl by vc2019 2021-07-13 15:09:46 +08:00
shuxin   zheng
506c63a0fe the connect and read/write timeout can use ms 2021-07-09 18:27:11 +08:00
shuxin   zheng
cc5619cf18 add one warning log when length too large for acl_vstring_memcat 2021-07-06 15:11:02 +08:00
zhengshuxin
7e72a9ad95 release acl 3.5.3-0 version 2021-06-24 16:44:13 +08:00
shuxin   zheng
eb074943af correct comments headers 2021-06-22 16:07:34 +08:00
shuxin   zheng
79b4a260eb format output 2021-06-22 09:08:34 +08:00
shuxin   zheng
53ca1e811e add comments in header 2021-06-21 10:40:02 +08:00
shuxin   zheng
fa9724c0c7 add acl_cpp_verbose() 2021-06-21 09:36:15 +08:00
zhengshuxin
a05c0ec9c2 optimize memory pool module 2021-06-18 19:05:48 +08:00
shuxin   zheng
dd6b6f913a optimize memory module 2021-06-18 14:52:21 +08:00
郑树新
58f0fa8798 add lost file and fixed one bug in rfc1035 2021-06-16 14:40:04 +08:00
shuxin   zheng
813445f2c5 ignore ACL_EVENT_XCPT when can_read_fn returns ok in can_read_callback. 2021-06-03 14:10:10 +08:00
shuxin   zheng
724ca3f016 don't call READ_IOCP_CLOSE() macro when got ACL_EVENT_XCPT event in can_read_callback, just let 'can_read_fn' to trigger a closing process which is useful for reading ICMP package when found a error by poll. 2021-06-02 16:57:49 +08:00
shuxin   zheng
2663fc923a add cname in acl_rfc1035_build_reply() in acl_rfc1035.c 2021-06-02 16:53:31 +08:00
shuxin   zheng
e1fdd70000 modify acl_dns_lookup()/acl_dns_lookup2() 2021-05-31 10:56:27 +08:00
shuxin   zheng
6385c33c81 add cname type in acl_rfc1035_build_reply 2021-05-26 17:28:57 +08:00
shuxin   zheng
285e3aaf29 add cname node in dns module 2021-05-26 15:52:48 +08:00
shuxin   zheng
fb3a64ebf9 add timeout when calling acl_sane_socketpair() for Windows platform 2021-05-25 15:12:45 +08:00
shuxin   zheng
686abe9cf0 optimize AAAA resolving 2021-05-20 17:16:19 +08:00
shuxin   zheng
82eb342d0f acl_dns.c support lookup for AAAA record 2021-05-20 15:21:09 +08:00
shuxin   zheng
b5acca8789 don't warning for null ips in acl_rfc1035_build_reply() of acl_rfc1035.c 2021-05-17 16:34:07 +08:00
zhengshuxin
e1a38c09e0 don't return NULL if rcode is 3 in acl_rfc1035.c 2021-05-17 16:01:41 +08:00
shuxin   zheng
6d95d2ef26 fixed bug in dns module 2021-05-14 14:02:48 +08:00
shuxin   zheng
fa6b9ee7ea add one demo to test acl_gethostbyname() 2021-05-12 17:08:00 +08:00
shuxin   zheng
07b0ac1508 AAAA can be resolved when using localDNS 2021-05-12 17:05:07 +08:00
shuxin   zheng
116ae826ff correct bug in fdmap.c 2021-04-27 15:11:06 +08:00
shuxin   zheng
46b728c63c don't fatal when fd extend the limits in fdmap 2021-04-27 14:48:41 +08:00
shuxin   zheng
b3e795a099 optimize json module 2021-03-28 11:41:11 +08:00
shuxin   zheng
9b835c8e8a optimize json module 2021-03-28 00:02:43 +08:00
shuxin   zheng
c4993fd694 fixed one bug in json module. 2021-03-27 15:59:42 +08:00
zsxxsz
34c55ccf0e build ok by vc2003 2021-03-07 21:26:26 +08:00
zhengshuxin
ed79cc3834 build ok on windows platform. 2021-02-23 14:30:00 +08:00
shuxin   zheng
62554834b7 fixed one bug for windows when using WSAPoll 2021-02-23 14:00:11 +08:00
zhengshuxin
dbf91ceca8 use -Wanalyzer in gcc to check some warning in acl 2021-02-13 15:15:14 +08:00
zhengshuxin
4ce5e20917 build ok for windows 2021-02-10 20:32:36 +08:00
zhengshuxin
f885500cf9 optimize codes 2021-02-10 19:58:56 +08:00
zhengshuxin
9700eaf8a2 format code 2021-02-10 19:16:37 +08:00
zhengshuxin
0f079be4a8 test event timer 2021-02-10 13:57:46 +08:00
zhengshuxin
8b3de764ed test event timer 2021-02-10 13:43:33 +08:00
zhengshuxin
6a95fde6f4 test event timer 2021-02-09 18:49:54 +08:00
zhengshuxin
ebd5b20c60 optimize and test event timer 2021-02-09 18:41:21 +08:00
zhengshuxin
16907cf22c Merge branch 'gitee-upstream-master' into gitee-master 2021-02-09 15:08:05 +08:00
zhengshuxin
b59c22ae1a rewriting event timer module 2021-02-09 15:07:10 +08:00
zhengshuxin
23b0f0c5af fixed some compiling warning on windows 2021-02-09 15:04:23 +08:00
zhengshuxin
89eccede84 Merge branch 'gitee-upstream-master' into gitee-master 2021-02-09 10:08:10 +08:00
zhengshuxin
e867cd6233 fixed bugs when using WSAPoll on Windows. 2021-02-09 10:04:48 +08:00
zhengshuxin
6d2051c86f Merge branch 'gitee-upstream-master' into gitee-master 2021-02-09 09:27:23 +08:00
zhengshuxin
bdc57a7abc fixed bug in acl_read_wait.c when using WSAPoll 2021-02-09 09:21:29 +08:00
shuxin   zheng
bae5acf17a optimizing event timer module ... 2021-02-08 18:52:10 +08:00
zsxxsz
70aea8ec7e fixed compiling error on vc2003, vc2008, vc2010 2021-02-02 22:09:03 +08:00
shuxin   zheng
5ca56a6cfb add more flags for poll events setting 2021-02-02 16:29:25 +08:00
shuxin   zheng
ba8386e5c2 fixed one compiling error in lib_acl 2021-01-28 18:34:03 +08:00
zhengshuxin
b16ca343dc don't use mutex when sendback result in redis_pipeline 2021-01-10 13:51:49 +08:00
shuxin   zheng
66942cf5ce optimize and test redis_pipeline 2021-01-06 14:35:12 +08:00
zhengshuxin
d811990ade optimize redis_pipeline 2021-01-06 10:07:31 +08:00
zhengshuxin
9508843d96 use another gettimeofday for windows platform. 2020-12-29 16:30:12 +08:00
zhengshuxin
9e277eddf0 optimize json parsing performance 2020-12-23 11:37:14 +08:00
shuxin   zheng
6d07aa4d06 fixed one bug in events module for handling exception case for one connection. 2020-11-25 19:20:11 +08:00
zhengshuxin
63392f4209 fixed compiling error when disable ACL_PREPARE_COMPILE compiling option. 2020-11-09 17:44:30 +08:00
shuxin   zheng
bcdd1ff51a optimize json module's performance by using dbuf as the memory allocator. 2020-11-06 14:30:00 +08:00
shuxin   zheng
5a4ae5b475 don't use _WINDLL for win32/win64 platform 2020-11-05 16:05:47 +08:00
shuxin   zheng
ea531338d6 format code style 2020-11-05 15:16:35 +08:00
zhengshuxin
c21cc6c733 test dns module 2020-10-24 10:59:00 +08:00
zhengshuxin
845338db4a test dns module 2020-10-23 17:47:50 +08:00
shuxin   zheng
0dd378e35d add dns test benchmark 2020-10-23 15:26:11 +08:00
zhengshuxin
ce7c7c093a fixed bug in fiber dns module 2020-10-22 15:02:58 +08:00
郑树新
9d8a94786c add read timeout when reading from UDP socket. 2020-10-21 22:27:55 +08:00
zhengshuxin
a9b2a20963 rewrite dns module 2020-10-20 18:30:00 +08:00
shuxin   zheng
cccec9661c rewriting dns module. 2020-10-20 17:22:07 +08:00
shuxin   zheng
d13dd6586a adding dns module 2020-10-19 18:43:30 +08:00
shuxin   zheng
4f6c47c68a make rfc1035 as a open API of acl 2020-10-19 13:34:18 +08:00
shuxin   zheng
4ee781d55a rewriting dns module 2020-10-18 19:51:05 +08:00
zhengshuxin
33456cc3af support inet6 in DNS module 2020-10-18 18:23:24 +08:00
shuxin   zheng
b1fbe89645 rewrite rfc1035 module in acl 2020-10-18 11:42:55 +08:00
郑树新
c420f52d85
Merge pull request #218 from moehuster/master
base64 decoding bug
2020-09-28 15:01:49 +08:00
shuxin   zheng
c414f7afab acl fiber can support Android now. 2020-09-27 23:35:04 +08:00
moehuster
a7215b2aad Bugfix: base64 decoding lead to undefined behavior when input isn't multiple of 4 2020-09-27 16:44:08 +08:00
unknown
206de9bb25 use 64bits first for ssize_t on windows platform. 2020-09-22 21:39:41 +08:00
unknown
5c2089371a fixed compiling warning on windows x64 2020-09-22 21:25:00 +08:00
unknown
9e68b56c10 fixed bug for defining ssize_t on windows x64 platform. 2020-09-22 21:17:58 +08:00
unknown
8fee32e9a4 supporting vc2019 2020-09-16 17:14:16 +08:00
shuxin   zheng
5057c10d5f support vc2019 2020-09-16 16:58:10 +08:00
unknown
858bcc7a94 add projects for vc2019 2020-09-16 16:25:20 +08:00
shuxin   zheng
a302311024 Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2020-09-06 22:14:10 +08:00
zhengshuxin
1c13d28c92 remove errbuf from ACL_VSTREAM to decrease its size 2020-09-05 13:24:47 +08:00
shuxin   zheng
9ee536725a test rfc1035 2020-09-01 17:09:26 +08:00
zhengshuxin
4e5ac16347 format code style. 2020-09-01 16:31:39 +08:00
zhengshuxin
0ee5ee6620 fixed bug when closing DNS client and using aio but the aio has been freed. 2020-09-01 16:25:39 +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
zhengshuxin
1fcd4d59b0 add cname in dns module 2020-08-24 12:05:52 +08:00
shuxin   zheng
77c95b1908 add one demo for testing rfc1035 2020-08-21 09:05:32 +08:00
zhengshuxin
3e348afc23 add RFC1035_TYPE_CNAME in rfc1035.c 2020-08-20 15:12:22 +08:00
zhengshuxin
a86ca6dab0 fixed bug in events_timer.c, events_timer_thr.c 2020-08-13 11:52:16 +08:00
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