Commit Graph

233 Commits

Author SHA1 Message Date
zhengshuxin
44ff4a5c91 add acl_sane_bind() 2021-10-12 17:46:00 +08:00
shuxin   zheng
c4993fd694 fixed one bug in json module. 2021-03-27 15:59:42 +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
06bbbbf9a6 acl_get_ifaddrs can work on MacOS 2020-04-16 14:22:53 +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
shuxin   zheng
994a27c7e9 add more safety protection for dns module 2019-12-16 10:43:50 +08:00
zhengshuxin
7ba1dd499f support Linux abstract unix domain socket 2019-12-11 10:46:22 +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
zhengshuxin
e774daeab4 SO_REUSEADDR can used in inet_connect_one() for client connection. 2019-08-16 11:13:09 +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
shuxin   zheng
922784168d fixed one bug in events_kqueue.h for time interval computing 2019-08-09 11:26:51 +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
d8d624ee98 use utf8 for text files. 2019-07-30 23:52:48 +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
郑树新
55002badee fixed bug in acl_vstream_clean_close_handle() where dead loop will happen. 2019-07-26 16:09:08 +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
zhengshuxin
8280209e71 add acl_vstream_read_peek3 2019-07-08 22:08:26 +08:00
zhengshuxin
832d236f27 merge request for fixing bug in get_buf() of acl_mylog.c 2019-06-13 09:39:51 +08:00
zhengshuxin
88b60dfa8a http_aclient ok! 2019-06-05 17:48:52 +08:00
zhengshuxin
3a5d971336 acl_dbuf_pool.c: reserve another memory node for improving performance. 2019-06-02 23:18:08 +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
ec6462f3e6 aio connect support resolving domain name async. 2019-05-24 16:59:47 +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
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
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
74369b46dc scan_dir: empty directory can be removed when scanning directories 2019-02-01 18:47:19 +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
9665f1a883 add udp_fatal_on_bind_error configure for acl_udp_server.c 2018-11-28 18:58:21 +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
08c00933dd fixed one bug in json builder 2018-11-15 18:17:26 +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
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
zsx
44e0948aec bugfix: ssize_t redefined to long to avoid error on vc in x64 2018-10-04 22:53:44 +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
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
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
zsx
1a3faee6ab fixed one compiling problem on vc 2018-09-19 17:52:09 +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