Commit Graph

576 Commits

Author SHA1 Message Date
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
zsx
175623b306 acl 3.4.1 released! 2018-05-07 14:59:52 +08:00
zsx
1f6afe2a74 acl 3.4.0 released! 2018-04-29 20:37:22 +08:00
zsxxsz
b7bd271ca4 build ok by vc2010 2018-04-25 23:25:59 +08:00
zhengshuxin
7647c210b7 acl build without ACL_PREPARE_COMPILE defined 2018-04-17 16:42:26 +08:00
zsx
83519e38c9 bugfix: acl_xml_parse.c 宏 IS_CDATA 判断有误 2018-04-08 14:09:11 +08:00
郑树新
534eefd4bc cmake building DLLs are ok for Windows 2018-03-30 14:35:34 +08:00
zsx
efbba7ff99 merge from libfiber 2018-03-05 14:11:12 +08:00
zsx
e22b24942f acl_unix_listen.c: won't fatal when binding UNIX addr error 2018-02-24 09:19:01 +08:00
zhengshuxin
7670fca314 compiling for FreeBSD ok 2017-09-22 19:22:26 +08:00
郑树新
87b2fd1508 redis_client.cpp: add authing_ for authing in dead loop. 2018-02-05 12:04:35 +08:00
zsxxsz
6d9add27bd bugfix in lib_acl: POLLHUP | POLLERR should not be set as input parameters. 2018-02-03 21:27:21 +08:00
zhengshuxin
69bd929c34 master tools: fixed some problems on Cendos5.x 2018-01-31 12:31:12 +08:00
郑树新
fa7a71f2fb fiber: add iocp event 2018-01-30 19:57:51 +08:00
zsx
1dbc76dbec fixed one bug in ipc_monitor.cpp. 2018-01-30 10:02:27 +08:00
zsx
21119f88a0 master_guard: add all info for version 2018-01-23 19:48:45 +08:00
zsx
ea244a6673 master & master tools can display the version of all services 2018-01-23 18:57:29 +08:00
zsxxsz
66c05c16cb fiber for windows: client2 and server2 run very well:) 2018-01-22 22:01:12 +08:00
郑树新
49a92e9348 fiber io can also stop automaticly when no IO and no timers been set. 2018-01-22 18:38:50 +08:00
zsxxsz
521cdffe83 build ok for vc2003 2018-01-21 18:13:48 +08:00
zsxxsz
400904dccf add error handling in acl_vstream.c & poll.c when operation timeout;
in fiber_win.c when calling CreateFiberEx, using size as the parameter
dwStackReserveSize;
2018-01-20 21:57:39 +08:00
郑树新
4afcac70a0 improve fiber IO performance when using timedwait read/write. 2018-01-16 18:24:13 +08:00
郑树新
0244606e67 remove FIBER_API in channel.hpp for compiling with no error on Windows & Unix 2018-01-16 14:28:42 +08:00
zsx
e9606ac8bc acl_ifconf_search can match TCP/UDP/UNIX domain socket addr automaticly 2018-01-16 13:55:55 +08:00
zsx
e7adfbb169 bugfix: fixed bugs in acl_ifconf.c's acl_ifconf_search and acl_udp_server.c 2018-01-16 11:43:35 +08:00
zsx
a004efcd70 acl_udp_server: fixed one bug for monitoring the network changing 2018-01-15 19:26:19 +08:00
zsx
bc845a5dcd fiber for windows OS can use IO read/write with timed waiting by using select/poll;
ACL_VSTREAM's NETWORK IO read/write interface can be hooked by user's IO API.
2018-01-14 23:08:04 +08:00
zsxxsz
768d30a56c fiber for windows OS can use IO read/write with timed waiting by using select/poll;
ACL_VSTREAM's NETWORK IO read/write interface can be hooked by user's IO API.
2018-01-14 22:54:44 +08:00
zsxxsz
ebf0361142 fiber event optimize 2018-01-13 09:37:57 +08:00
zsxxsz
6b20f28844 add function giving the events count in one event loop 2018-01-09 23:37:23 +08:00
root
01be5a98c6 acl_udp_server: can exit gracefully 2018-01-03 02:54:53 +08:00
zsx
5ab9024ae1 udp server: add gracefully exiting process 2018-01-02 15:21:37 +08:00
zhengshuxin
b698693b3c build ok for FreeBSD 2016-01-14 14:45:37 +08:00
zsxxsz
c7fc99f2d8 fiber for windows can run:) 2018-01-01 00:10:00 +08:00
zsx
d33548f291 one compiling warning on macos 2017-12-25 15:04:45 +08:00
zsx
96cf502095 fixed samples compiling error 2017-12-25 13:01:46 +08:00
zsx
4f0e2cc8dd feature: master can bind udp with unix domain path 2017-12-12 19:18:33 +08:00
zsx
c10ef0b4d5 bugfix: fixed bug in acl_ifconf_search function. 2017-12-12 16:33:46 +08:00
zsx
f0c52f92f1 acl_mbox supports eventfd as notify handle 2017-12-12 14:02:25 +08:00
zsx
fa113a12e7 acl stream and servers support UNIX domain socket in UDP packet mode 2017-12-10 22:23:37 +08:00
zsx
aa3e355225 compile: fixed one compile error 2017-12-08 10:03:00 +08:00
zsx
68dfbb4de8 workaroud: function acl_res_lookup of acl_res.c will not call fatal when domain invalid 2017-12-08 09:52:48 +08:00
ruki
987385ea6e add xmake.lua 2017-11-30 10:04:15 +08:00
zsx
a8d8f40b52 master: can start & restart one service with different extname that maybe be used for different service version 2017-11-21 16:46:39 +08:00
郑树新
ad96211014 vc projects: remove private_global.h and add acl_define_macosx.h 2017-11-21 10:58:44 +08:00
郑树新
23f1915473 compiling: support vc2017 2017-11-20 12:15:19 +08:00
zhengshuxin
b2b6521a75 compiling error on CentOS6.x 2017-11-16 11:37:57 +08:00
zhengshuxin
f931680917 bugfix: don't notify master in alone running mode. 2017-11-13 21:21:26 +08:00
zhengshuxin
314e08b9f0 compiling: fixed one compiling error on FreeBSD 2017-11-13 09:26:48 +08:00
zhengshuxin
ef7e4495ac master: can start services specified in configure file. 2017-11-12 00:20:15 +08:00
zhengshuxin
41ce67f000 bugfix: acl_udp_server rebinding addrs 2017-11-10 22:36:03 +08:00
zhengshuxin
65a5b15315 acl_udp_server: add/del ip auto 2017-11-10 14:43:21 +08:00
zhengshuxin
8b4d78198e bugfix: fxied deadlock in acl_mylog.c 2017-11-10 12:57:18 +08:00
zhengshuxin
acb6358d13 bugfix: fixed dead lock in acl_mylog.c 2017-11-10 12:00:43 +08:00
zhengshuxin
037d5d8994 format code style 2017-11-10 10:08:34 +08:00
zhengshuxin
519a42f9c2 compiling: fxied compiling error on FreeBSD 2017-11-09 19:16:51 +08:00
zhengshuxin
4d43fc5ae7 acl_udp_server: can find ip addrs changing automaticlly 2017-11-09 18:58:42 +08:00
zhengshuxin
c9267f4d93 master template: remove unused args 2017-11-07 17:08:54 +08:00
zhengshuxin
46cc12739f compiling: fixed compiling error on vc 2017-10-27 16:33:56 +08:00
zhengshuxin
db886f9d62 master: all server template support waiting the service starting status 2017-10-27 11:38:10 +08:00
zhengshuxin
52e401c142 event: events_epoll_thr.cpp, fixed one bug in event_enable_write function 2017-10-27 11:37:28 +08:00
zhengshuxin
bc4f60a2d3 acl_master: when starting services remotely, users can wait the result of the services' starting status or not. 2017-10-27 00:00:41 +08:00
centos6.9-32
70f510b33f remove debug info 2017-10-16 22:46:30 -07:00
zhengshuxin
7749e15bcc fiber: test 2017-10-12 18:59:50 +08:00
zhengshuxin
b998731976 building: modify Makefiles to build more quickly on multi-cores CPU 2017-10-10 10:19:59 +08:00
zsxxsz
607905bfec compile: There's one compiling error in acl_atomic_int64_cas. 2017-10-01 13:59:02 +08:00
zhengshuxin
3d71e10668 fiber: fiber_lock can trigger immediately with IO event 2017-10-01 13:54:57 +08:00
郑树新
5bda421b74 mbox: add debug info 2017-09-28 16:57:15 +08:00
郑树新
868bef0fb9 compile: one compiling warning by vc 2017-09-28 14:27:44 +08:00
zhengshuxin
83724d3e8a valgrind: free global objects when process exiting to avoid valgrind reporting error. 2017-09-28 12:29:20 +08:00
zsx
ea61c76939 build ok on MacOSX by xcode 2017-09-19 10:49:13 +08:00
郑树新
0bf16cd1f8 build ok on windows by vc 2017-09-21 17:34:25 +08:00
zhengshuxin
70f4b50ee1 fixed bugs in event timer module 2017-09-21 16:00:44 +08:00
zhengshuxin
fd66d9bbc4 fixed one bug in acl_udp_server.c when sending status to master 2017-09-19 17:16:36 +08:00
郑树新
de4ec340a4 compiling ok on Android Studio 2017-09-13 11:30:27 +08:00
zhengshuxin
d5119d3ca1 Merge branch 'master' of https://github.com/zhengshuxin/acl into github-zsx-master 2017-09-13 11:26:28 +08:00
zhengshuxin
52b692221a merge acl 2017-09-13 11:25:39 +08:00