Commit Graph

652 Commits

Author SHA1 Message Date
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
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
郑树新
9b4d238793 compiling ok on vc 2019-05-09 14:30:45 +08:00
zhengshuxin
81ee32453f acl_vstream.c: fixed bug in acl_vstream_fflush() where wbuf_dlen should be set 0 2019-05-06 09:37:46 +08:00
zhengshuxin
34ebcc8bc4 fixed one bug in sample/ioctl_echo3/main.c -- by xiaohooGit 2019-04-10 21:43:13 +08:00
zhengshuxin
c5c2659eb3 rename chunk_chain.cpp.cpp to chunk_chain.cpp 2019-03-20 13:55:17 +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
郑树新
59ea283a86 Build ok for vc 2019-03-08 11:17:32 +08:00
郑树新
b6f9803959 Build ok for Android Studio 3.3.2 ! 2019-03-07 16:40:47 +08:00
zsx
a059264505 acl_mylog.c: remove thread mutex when writing log to local file or remote UDP server like syslog-ng 2019-02-24 22:17:15 +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
c86ec682bd acl_scan_dir.c: continue to scan the next node when some error happends 2019-02-11 11:20:29 +08:00
zsx
0447653edd release 3.4.1-45 version 2019-02-01 18:51:41 +08:00
zsx
74369b46dc scan_dir: empty directory can be removed when scanning directories 2019-02-01 18:47:19 +08:00
zsx
3b4b19a542 fixed bugs in scan_dir module 2019-02-01 13:49:27 +08:00
zsx
5acbcf50cc connect_manager::check_idle: fixed one bug when pools_size is 0 2019-01-21 13:19:49 +08:00
zsx
776fc38689 upgrade acl's version 2019-01-17 14:24:28 +08:00
zsx
db2d293a3e tcp_keeper is ok! 2019-01-15 11:57:19 +08:00
zsx
7db86b1bc3 release 3.4.1-42 version for some improvement 2019-01-14 14:46:51 +08:00
zsx
1edd724a8d fixed one bug in fiber for stopping scheduling automatically 2019-01-14 14:34:14 +08:00
zsx
c3c53f0be6 fiber_tbox.hpp/tbox.hpp/mbox.hpp: set free_obj's default value to true 2019-01-02 11:28:49 +08:00
zsx
ff8a217755 acl_fiber_event.c: fixed one bug in event_ferror 2018-12-27 11:06:13 +08:00
zsx
7ab0b6f5e3 fixed bugs in acl_fiber_cond_wait/acl_fiber_cond_timedwait that detaching fbase must before calling acl_fiber_event_wait 2018-12-27 10:07:14 +08:00
zsx
f6230bfb5f release 3.4.1-38 version 2018-12-25 11:37:58 +08:00
zsx
ea6e192002 add log info for acl_vstream_close 2018-12-20 17:29:21 +08:00
zsx
bd6375fe2a connect_manager: support fiber running in threads 2018-12-16 16:47:51 +08:00
zsx
e82b63b025 format code style 2018-12-12 11:16:12 +08:00
zsx
c9d87eb368 delete unused files by xcode 2018-12-07 13:56:05 +08:00
zsx
d0d51ec6d1 build for macos 2018-12-07 13:50:42 +08:00
zsx
913fc1d187 release 3.4.1-36 2018-12-06 15:51:53 +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
zsx
56c8a058f4 fiber_event.c: fixed one bug in acl_fiber_event_notify 2018-11-29 22:44:16 +08:00
zsx
e48753986e fbase_event.c: restart IO when IO process is interrupted by EINTR. 2018-11-29 11:28:48 +08:00
zsx
9665f1a883 add udp_fatal_on_bind_error configure for acl_udp_server.c 2018-11-28 18:58:21 +08:00
zsx
24cfe81664 fixed one bug in server_binding of acl_udp_server.c 2018-11-28 16:10:18 +08:00
zsx
b2c8f16308 fixed one bug in server_binding() of acl_udp_server.c when binding addr failed. 2018-11-28 16:08:26 +08:00
zsx
ec495072b1 lib_fiber/c/src/fiber_event.c: fixed one bug for lock conlision 2018-11-28 09:47:04 +08:00
zsx
92ffb2cc9d fixed one bug in fiber_event.c 2018-11-27 14:51:11 +08:00
zsx
7a934e149c One bug in sha1 was fixed by dawei.lin@net263.com. 2018-11-22 22:18:25 +08:00
zhengshuxin
29b6fa01b5 check add json demo ok! 2018-11-15 23:05:00 +08:00
zsx
08c00933dd fixed one bug in json builder 2018-11-15 18:17:26 +08:00
zsx
efdb56b579 add ACL_EMFILE errno for UNIX/Windows. 2018-11-15 15:48:13 +08:00
zsx
00365e4c9e change version in acl_init.c 2018-10-31 22:19:57 +08:00
zsx
2dc0115ea5 fixed bug in acl_udp_server.c for windows OS. 2018-10-31 17:26:54 +08:00
zsx
127f6e0c33 acl_set_core_limit can only be used on UNIX-like OS. 2018-10-31 17:10:06 +08:00
zsx
687195ad40 build acl with cmake for Linux 2018-10-27 22:04:58 +08:00
zsx
180f88c837 bugfix: multiple socket addrs can't be bound in acl_udp_server.c 2018-10-23 22:30:50 +08:00
zsx
86b45b99f2 udp server is more stable. 2018-10-23 21:29:55 +08:00
zsx
ea3d71999a limit the core file's size and disable creating core when process is exiting. 2018-10-23 13:29:21 +08:00
zhengshuxin
18af5fc7a2 Merge branch 'master' of github:zhengshuxin/acl 2018-10-17 17:19:24 +08:00
zsx
16c402fe42 release 3.4.1-27 2018-10-11 11:02:30 +08:00
zsx
c949a3be7a add proc_on_unbind in master_udp 2018-10-08 16:32:44 +08:00
zsx
7fba2fbcce format code style 2018-10-08 15:36:12 +08:00
zhengshuxin
b46fea21d4 add end_with in acl::string 2018-10-07 21:35:46 +08:00
zsx
44e0948aec bugfix: ssize_t redefined to long to avoid error on vc in x64 2018-10-04 22:53:44 +08:00
zsx
3217e70bb5 use acl_socket_alive as the new method for checking the socket's aliving status. 2018-09-29 11:30:42 +08:00
郑树新
c0c1b22e69 add acl_socket_alive for checking if the given socket is aliving. 2018-09-29 11:03:35 +08:00
zsx
97fddf37a2 bugfix: acl_inet_connect_ex of acl_inet_connect.c should support domain:port format 2018-09-28 17:52:18 +08:00
zhengshuxin
8ed2885098 Merge branch 'master' of github:zhengshuxin/acl 2018-09-26 11:24:31 +08:00
zsx
b2df701b1f fixed one bug in acl_cache2_update of acl_cache2.c 2018-09-22 13:46:11 +08:00
zsx
a4bb891b53 In acl_cache2_enter of acl_cache2.c the elder elements will be removed according LRU. 2018-09-22 10:48:50 +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
8f5aa2129a don't use ":" as the seperator in ipv6_clone of acl_sane_inet.c 2018-09-22 08:53:11 +08:00
zsx
608cc2a229 acl_inet_ntop should not add "%ifname" for local IPV6 2018-09-21 22:04:36 +08:00
zsx
7847375f25 The acl_inet_ntop should use ':' as the seperate for IPV4, or the acl_udp_server.c will mismatch the changed IPV4 addrs;
The sstreams_ in master_udp.cpp should be protected by mutex avoiding multipule-threads change it in the same time.
2018-09-21 21:56:21 +08:00
郑树新
e6cead0a67 fixed one problem in getaddrinfo of lib_fiber; 2018-09-19 18:36:05 +08:00
zsx
1a3faee6ab fixed one compiling problem on vc 2018-09-19 17:52:09 +08:00
zhengshuxin
955af9d1d4 addrs matching in acl_master 2018-09-19 16:48:40 +08:00
zsx
f53fcb5ab3 bugfix: acl_ifconf_search in acl_ifconf.c can't handle some addr pattern 2018-09-19 15:52:59 +08:00
zsx
bf184fbfea add some useful methods in acl_cache2.cpp 2018-09-18 15:04:23 +08:00
zsx
5177e4f43e optimize acl_valid_unix API in acl_valid_hostname.c 2018-09-17 18:59:25 +08:00
zsx
de4805a6c8 fixed one bug in acl_ifconf.c for checking the UNIX path for matching. 2018-09-17 18:44:27 +08:00
zsx
4e393625c0 delete unused files. 2018-09-17 14:26:46 +08:00
zsx
f15c17ae29 build ok for Mac 2018-09-17 14:20:45 +08:00
zhengshuxin
b4bb083bdd build ok by gcc7.1.0 2018-09-17 13:33:34 +08:00
zsx
4969d4bed9 using if_nametoindex in acl_inet_pton 2018-09-17 13:11:47 +08:00
zsx
e08c37d23d add one test 2018-09-16 23:14:36 +08:00
zsx
75a4cbf1e2 test IPV6 supporting 2018-09-16 22:19:40 +08:00
zsx
f27af8b424 acl support IPV6 is OK now! 2018-09-16 21:49:58 +08:00
zsx
afa223c6b3 fixed Linux's bug in acl_inet_pton of IPV6 addrs that using getaddrinfo other than inet_pton 2018-09-14 23:33:23 +08:00
zhengshuxin
1103ae73bc build ok for Centos5.x 2018-09-14 10:24:47 +08:00
zsx
4a3ec4a288 supporting IPV6 2018-09-13 18:38:03 +08:00
zsx
828610b2d7 acl_ifconf.c is supporting IPV6 2018-09-13 15:14:58 +08:00
zsx
050da06552 supporting IPV6 2018-09-12 19:03:32 +08:00
zsx
9986105018 supporting IPV6 2018-09-12 17:43:46 +08:00
zsx
9498838177 supporting IPV6 2018-09-11 19:07:43 +08:00
zsx
cbf202d1b1 supporting IPV6 2018-09-10 18:30:54 +08:00
郑树新
6772f92d9b !1 修复在 FreeBSD 8.x 上编译的一个错误
Merge pull request !1 from lsgx/fix-freebsd8-error
2018-08-24 17:40:43 +08:00
zsx
2b8a99dd3f merge acl_mem_slice.c 2018-08-24 17:38:37 +08:00
zsxxsz
c9e5e010a7 fixed compiling warning on VC 2018-08-19 23:11:36 +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
fd30abd5f3 modify Makefile 2018-08-08 14:08:43 +08:00
zhengshuxin
155fc3ba7f CMakeLists in lib_acl adding gcc version checking. 2018-08-08 14:05:29 +08:00
zsx
e8fad9062a fixed some compiling warning 2018-08-08 11:45:37 +08:00
zhengshuxin
99aec2e3ea optimize the space using for ACL_JSON, ACL_VSTRING, ACL_VBUF 2018-08-06 23:16:00 +08:00
zsx
4dc4e2cb18 bugfix: json parse should not ignore string value begin with space 2018-08-03 11:04:36 +08:00
zsx
9d1c2e850b bugfix: json parser gson serialization can't handle empty array object. 2018-08-02 23:00:22 +08:00
Charlie Root
82708780d8 fixed one compiling error for freebsd8 by jjx 2018-07-01 22:09:12 +08:00
zsx
ac7a0d4c5b fixed bugs in acl_write_wait.c: when POLLHUP and POLLERR returned, don't return -1 2018-05-17 16:45:15 +08:00