Commit Graph

240 Commits

Author SHA1 Message Date
郑树新
23f1915473 compiling: support vc2017 2017-11-20 12:15:19 +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
zhengshuxin
3d71e10668 fiber: fiber_lock can trigger immediately with IO event 2017-10-01 13:54:57 +08:00
zhengshuxin
70f4b50ee1 fixed bugs in event timer module 2017-09-21 16:00:44 +08:00
zhengshuxin
8ada09778c fixed bugs in acl_dlink.c for adding continuous integers;
acl_dlink.c supports for adding negative integers.
2017-09-13 11:17:00 +08:00
zhengshuxin
a67e6a6338 sighup's result status from children can be got by acl_master 2017-09-09 00:30:39 +08:00
zhengshuxin
7d94dd5a04 let mbox::pop be blocked when timeout < 0 2017-09-08 19:18:49 +08:00
zhengshuxin
3d02c72328 all master templates support handling SIGTERM signal. 2017-09-05 10:58:55 +08:00
zhengshuxin
85b55d4e4e acl_mbox_read's timeout use millisecond precision 2017-08-29 11:32:07 +08:00
zhengshuxin
be7629ced2 add acl_read_xxx_wait with milliseconds;
icmp ping supports timeout and delay with milliseconds;
2017-08-15 12:17:57 +08:00
zsxxsz
b1fe62649f change charset of comments from utf-8 to gbk. 2017-08-13 22:53:52 +08:00
zhengshuxin
db7ca4ff38 add comments in acl_atomic.h 2017-08-13 22:41:35 +08:00
zhengshuxin
8bb4c91b58 add return value to show the result of acl_chroot_uid than just broken when error happened. 2017-08-11 21:41:26 +08:00
zhengshuxin
1915852bd9 SO_REUSEPORT can be used in master server framework by setting configure item 2017-08-10 11:35:52 +08:00
zhengshuxin
93b3250ca5 add methods that get configure path 2017-07-22 21:32:21 +08:00
郑树新
5b406b6115 building for Android studio 2.3.3 2017-07-20 10:59:28 +08:00
zhengshuxin
ddee9c8d69 invalid charset in acl_vstream.h 2017-07-11 18:03:45 +08:00
zhengshuxin
88eb449328 udp server template can be created with joinable mode. 2017-07-10 12:22:09 +08:00
zhengshuxin
99660d0734 add proc_on_bind in master_udp class 2017-07-05 14:31:18 +08:00
zhengshuxin
88d6f6c44f all server templates support SIGHUP callback. 2017-07-04 23:33:28 +08:00
zhengshuxin
d6385832d6 add ACL_ATOMIC_CLOCK object for statics of running status 2017-07-03 14:40:06 +08:00
zhengshuxin
47e38ca99f netdb.h should be included for getaddrinfo. 2017-06-24 22:37:35 +08:00
Zheng Shuxin
3c86372490 modify acl_udp_server.c 2017-06-22 12:21:54 +08:00
郑树新
109b498110 add atomic add 2017-06-22 11:03:07 +08:00
ubuntu14
7ed6180b33 udp server support multi threads mode 2017-06-21 18:31:37 +08:00
郑树新
64afad5c42 master_udp.cpp using acl_udp_server.c in alone mode. 2017-06-21 12:27:41 +08:00
ubuntu14
3a863cc238 add acl_host_addrinfo for resovle domain 2017-06-21 11:10:49 +08:00
ubuntu14
85f1db0b38 acl_udp_sever.c can bind addrs matching some pattern 2017-06-20 14:07:45 +08:00
ubuntu14
dfbb553f01 adding http interface for acl_master 2017-06-15 11:28:01 +08:00
zhengshuxin
aedcf2de10 for new acl-master lib 2017-06-12 23:24:00 +08:00
zhengshuxin
b71b6a99a4 add new files for master 2017-06-12 23:23:07 +08:00
zhengshuxin
0b30d83329 move acl_master to app from lib_acl 2017-06-12 23:19:56 +08:00
zhengshuxin
3612489a81 ACL_TOKEN support acl_foreach 2017-06-05 12:21:02 +08:00
zhengshuxin
6bfdac5843 add acl_token_tree_word_remove in acl_token_tree.c 2017-06-03 23:45:18 +08:00
zhengshuxin
423b9a07c2 add macro ACL_TOKEN_TREE_WORD_MATCH for fast search word in token tree 2017-06-03 18:12:02 +08:00
zhengshuxin
78a7540a76 reorganize all the include headers. 2017-06-02 14:47:24 +08:00
zhengshuxin
a0f4e48d41 fixed one bug in acl_mylog.c/private_vstream.c that freeing memory corrupt. 2017-05-03 11:19:20 +08:00
zhengshuxin
5684b7ef41 rename boolean_t to acl_boolean_t for avoiding collision with xcode's lib 2017-04-21 15:57:51 +08:00
zhengshuxin
5e271bd1b9 acl_pthread_mutex_destroy was lost on windows. 2017-04-17 22:02:34 +08:00
zhengshuxin
fd719a73e3 fixed one bug in acl_pthread_cond.c for double-free one same memory. 2017-04-17 21:56:13 +08:00
zhengshuxin
41b89b7aaa hook getaddrinfo in acl fiber 2017-04-13 21:50:55 +08:00
zhengshuxin
29f3ef3b73 supporting for IPV6 2017-04-11 23:14:39 +08:00
zhengshuxin
b73d188e30 support IPV6. 2017-04-07 20:13:08 +08:00
zhengshuxin
d167d8f85d fixed fiber's errors;
add feature in some modules.
2017-03-31 23:04:16 +08:00
zhengshuxin
768210296c compile error on FreeBSD 2017-03-25 23:34:54 +08:00
zhengshuxin
3cd0864746 supporting ios and can be compiled by xcode. 2017-03-12 14:49:48 +08:00
zhengshuxin
09e4b0d381 migrate to Android platform OK! 2017-02-12 21:39:38 +08:00
zhengshuxin
5e1bd3c5d9 migrating acl to android;
modify fiber id to unsigned int.
2017-01-23 16:59:58 +08:00
zhengshuxin
06fa2499fa fixed bugs in lib_fiber; add features in http module. 2016-12-29 23:58:18 +08:00
zhengshuxin
1b6d166ef6 add acl_fiber_kill for fiber lib;
add listen callback for master template.
2016-12-03 20:09:21 +08:00
ubuntu14
bcb2f1b85c fixed one bug in fiber.c for memory leak
add some samples for lib_liber
2016-11-27 21:03:24 +08:00
zhengshuxin
2b282d9f66 remove setting non-blocking in acl_vstream_fdopen. 2016-11-18 21:45:40 +08:00
zhengshuxin
60f2fc2203 fixed compiling error on centos4.7 by gcc3.x.x 2016-10-28 15:01:42 +08:00
zhengshuxin
be034725b3 rename acl_init to acl_lib_init; fixed one bug in url encoding for '+' 2016-10-25 10:31:33 +08:00
zhengshuxin
be07157761 fixed one bug in acl_json.h for duplicate defined ACL_JSON_T_XXX 2016-10-21 17:22:40 +08:00
zhengshuxin
f30b2b4144 add some websocket samples(upload_server/upload_client); fixed some bugs in acl; 2016-10-21 15:02:50 +08:00
zhengshuxin
8fc6f990f2 add null type for json module when building json obj. 2016-10-10 23:03:05 +08:00
zhengshuxin
3846cda043 add websocket in lib_acl_cpp. 2016-09-20 19:55:38 +08:00
zhengshuxin
6f8105136a fixed bugs in read line functions of acl_vstream.c; add c++11 into fiber. 2016-09-07 19:58:19 +08:00
ubuntu14
271fc96cdf add master web monitor by master_fiber mode; arrange codes; add methods to json module; 2016-07-29 16:43:46 +08:00
ubuntu14
2e5724cbeb add acl_mbox.c for thread communication 2016-06-26 12:17:17 +08:00
ubuntu14
2d14abfec4 rename fiber_schedule.c to fiber.c 2016-06-25 16:05:48 +08:00
ubuntu14
92b0dc124e add lib_fiber 2016-05-30 14:09:38 +08:00
ubuntu14
29d2584744 fixed one bug in acl_sys_file.c for windows; add one no lock quque 2016-05-22 00:08:10 +08:00
ubuntu14
1148788f2b optimize some codes 2016-05-10 21:58:47 +08:00
ubuntu14
69d2ee1118 compile acl on vc2015 successfully 2016-04-30 11:49:41 +08:00
ubuntu14
6590dd07f8 make acl_threads_server.c friendly to valgrind 2016-04-23 20:30:49 +08:00
ubuntu14
a6f78cc0b0 add quote split string 2016-04-14 22:39:11 +08:00
ubuntu14
7bad3a7cab fixed one bug in json parser for reset 2016-03-19 22:05:46 +08:00
ubuntu14
02b0fec5e5 fixed one problem of compiling dll on vc2012 2016-03-03 17:07:53 +08:00
ubuntu14
162f645c53 acl_threads_server.c can be used for windows; fixed some bugs 2016-02-28 17:48:17 +08:00
ubuntu14
e3e9bc77fa improving compiling speed by add precompile way 2016-02-25 19:57:02 +08:00
ubuntu14
af1d5bd90e improving performance and fixed some bugs 2016-02-05 10:10:24 +08:00
ubuntu14
3f74c26a14 modify redis interface; make socket more safty 2016-01-17 13:35:12 +08:00
ubuntu14
835e3a215f fixed some urgent bugx 2015-12-21 20:47:44 +08:00
ubuntu14
9de2c19ca3 improving peformance for event process 2015-12-19 23:27:55 -08:00
ubuntu14
1dce4a51b5 disable SPIN LOCK on linux default 2015-12-14 06:42:30 -08:00
ubuntu14
2b6ac5c3b9 acl3.1.4.rc1 release 2015-12-12 07:00:03 -08:00
ubuntu14
be3062a505 update polarssl to 1.2.18; prepare for releasing new acl version 2015-12-08 06:28:10 -08:00
ubuntu14
379c50cba9 fixed bugs in acl_vstream.c and polarssl_io.cpp; add xml2, xml3 for parsing xml data 2015-12-03 17:00:07 +08:00
ubuntu14
a816bc5762 fixed bugs in dbuf and add a new xml parser 2015-11-27 07:07:43 -08:00
ubuntu14
e37d58557b complete dbuf module and using it in many other modules 2015-11-20 07:29:10 -08:00
ubuntu14
a9101ebf0c modify Makefile for MACOSX and FreeBSD 2015-11-09 06:11:21 -08:00
ubuntu14
21e0796f45 modify some codes 2015-10-20 06:07:23 -07:00
ubuntu14
b319c8742a add mail builder class and sample; optimize http module; add some json samples for test 2015-09-27 05:59:21 -07:00
zsx
eeb5ae39ae fixed some bugs in redis and disque; add mail compose and smtp client module 2015-09-08 17:21:04 +08:00
zsxxsz
33de35bfff improvement dbuf pool's performance; add dbuf_pool sample 2015-07-22 00:41:11 +08:00
ubuntu14
2a35f4992d all samples can be built by vc2012 in x64 mode 2015-06-29 02:33:11 -07:00
zsxxsz
fc22796257 lib_acl, lib_protocol, lib_acl_cpp can be built by VC2012 in x64 mode 2015-06-28 20:27:51 +08:00
ubuntu14
26ede3c85a add some comments in wizard's source; add reset function for acl_dbuf_pool.c 2015-06-22 02:32:33 -07:00
zsx
062d87cea6 improve json parsing speed 2015-06-19 16:08:17 +08:00
zsx
4866e55c49 add thread queue sample: samples/thread_queue 2015-06-18 14:54:58 +08:00
zsx
3274df3b13 fixed some compile error on MACOSX 2015-06-14 02:47:59 +08:00
zsx
883b0681f5 use redis cluster to store session for http module 2015-06-03 11:19:13 +08:00
ubuntu14
9337889af3 The project can be built on MINGW32 2015-05-21 06:49:35 -07:00
zsxxsz
e74ac017f9 完善了连接池管理功能模块 2015-04-04 15:25:29 +08:00
zsxxsz
fb5ccddc4e acl 3.1.1 version release 2015-03-29 20:32:07 +08:00
zsx
c28744324c Ôö¼ÓÁË redis ¿ͻ§¶ËеÄÀ࣬¸ÃÀà¼̳ÐÁËÆäËüËùÓеÄ redis ¿ͻ§¶ËÀà 2015-03-27 17:05:12 +08:00
zsx
dfe63fc844 redis client lib support redis3.0 cluster 2015-02-27 13:33:00 +08:00
ubuntu14
d7b3d92ca8 complate redis_zset, redis_script; add redis_pubsub sample 2015-01-21 07:39:02 -08:00
ubuntu14
a674a864ab add redis client lib 2015-01-14 07:35:23 -08:00
zsxxsz
9a7e7b07dd 整理工程,优化代码,添加阿里云 OSS 客户端接口 2015-01-04 22:51:01 +08:00
zsxxsz
f0249e0ca1 完善TCP连接派发器,从而更便于集群管理;其它功能模块的完善 2014-12-14 18:26:52 +08:00
zsxxsz
d8fd96aee8 整理工程,优化代码 2014-12-07 23:48:11 +08:00
zsxxsz
cf2528eb7c 完善了非阻塞IO的SSL功能;将 samples 移到 lib_acl 目录下
完善了非阻塞IO的SSL功能;将 acl/samples/ 下的示例分别移到 lib_acl 及 lib_protocol 目录下
2014-11-30 21:15:35 +08:00
zsxxsz
7ad26a48a5 线程池服务模板功能改进及 protobuf 包更新 2014-11-25 19:44:37 +08:00
zsxxsz
bafd2218a4 整理了一些文件格式 2014-11-19 00:25:21 +08:00
zsxxsz
550b1095de Revert "修复了使用 _vsnprintf_s 的BUG和 stream 类中打开文件流时的BUG"
This reverts commit dff6771da7.
2014-11-19 00:06:40 +08:00
zsxxsz
dff6771da7 修复了使用 _vsnprintf_s 的BUG和 stream 类中打开文件流时的BUG 2014-11-18 23:08:34 +08:00
zsxxsz
7e97baaf36 增加了套接字选项的设置及获取的方法 2014-10-25 20:33:21 +08:00
zsxxsz
037422b1e7 polarssl 库升级,一些 BUG 修复 2014-10-24 21:17:01 +08:00
zsxxsz
d8ec1e924d 线程池服务器模板支持 accept 回调处理过程在子线程中进行
可以通过配置项(ioctl_thread_accpet=1)将 accept 的回调处理过程交由线程池中的子线程处理,这样可以在 accept
回调过程处理一些比较花费时间的处理过程而不会阻塞主线程
2014-09-10 00:08:43 +08:00
zsxxsz
65ab0a7659 整理 lib_acl 库中的头文件 2014-09-06 23:08:25 +08:00
zsxxsz
d381b0117d 完善了针对 Polarssl 的支持
升级 polarssl 至1.3.8版本;支持服务端模式的 ssl 通信方式;增加了 SSL 的服务端测试用例
2014-08-20 22:31:35 +08:00
zsxxsz
9ce5d0d2c2 修复代码问题和VC工程
整理VC工程文件;修改了MIME解析中的问题
2014-07-21 22:32:11 +08:00
zsxxsz
97eb97fd67 添加示例,完善库函数
增加了 dircmp 示例;修改了 string 类;修改了 acl_set_eugid, acl_set_ugid 函数
2014-07-16 19:59:58 +08:00
zsxxsz
8e5ae88b1d acl.3.0.19 版本发布 2014-06-23 20:19:05 +08:00
zsxxsz
2a75ab0cd0 代码优化 2014-06-22 19:42:08 +08:00
zsxxsz
1c565c875b 修复了C++库中连接池及HTTP模块中的BUG
C++库中连接池管理存在BUG;C++库的 HTTP 模块存在BUG;C库中的 master 服务器框架允许以非 ROOT
身份启动;C++库中增加了目录扫描类:scan_dir
2014-05-22 21:33:41 +08:00
zsxxsz
ad62afa90b BUG修复及功能完善
修改了一些已知问题,完善了服务器生成向导程序,增加了目录拷贝程序dircopy
2014-05-16 21:08:52 +08:00
zsxxsz
af2b04eaf2 整理VC工程
将VC2008, 2010, 2012 的工程文件中的例子分类
2014-04-10 22:18:25 +08:00
zsxxsz
929ebc13be 服务器框架支持客户端连接平均分配的功能
增加了 master_dispatch 服务模板,由其接收外来客户端连接,同时将连接平均分配给后端的服务子进程
2014-03-27 23:55:38 +08:00
zsxxsz
26e96fcd8c 修改了服务器线程池模板(c++库)中 master_threads2.cpp 中漏内存的BUG,优化了多线程事件引擎
修改了服务器线程池模板(c++库)中 master_threads2.cpp 中漏内存的BUG,优化了多线程事件引擎
2014-03-21 20:54:21 +08:00
zsxxsz
b20e0b6c53 acl 3.0.16 版本发布!
该版本主要优化了线程池调度的性能,同时优化了多线程事件引擎的效率
2014-02-20 22:57:48 +08:00
zsxxsz
e2bbbac332 归整了代码格式 2014-02-16 12:23:17 +08:00
zsxxsz
5796debda4 优化了多线程事件引擎的效率,优化了线程池的任务处理能力,调整了部分代码的格式 2014-02-15 16:01:56 +08:00
zsxxsz
8017426b99 针对 gcc 或 vc 编译器,增加了一些编译属性开关 2014-02-06 19:59:59 +08:00
zsxxsz
22f1f139cb 优化了线程池调度算法 2014-01-26 19:19:55 +08:00
zsxxsz
a3b2e1f6d1 优化了线程池的性能
通过给线程池中的每一个线程一个独立的线程条件变量(之前是用同一个),大大减少了线程池在任务调度时的竞争问题
2014-01-19 23:59:13 +08:00
zsxxsz
fc3cae0a35 支持VC2008编译器
acl 重新支持VC2008编译器;在高版本VC编译器上,acl库尽量使用编译器建议安全的系统 API
2014-01-12 15:36:49 +08:00
zsxxsz
ec45296f32 新线程池服务模板当应用崩溃时不能生成 core 文件的问题修复;acl_fifo 中注释有误 2014-01-07 22:52:23 +08:00
zsxxsz
3c856acfd3 修复 了 json 解析器的一些 bug,使之更为规范化
修复 了 json 解析器的一些 bug,使之更为规范化
2013-12-31 22:52:11 +08:00
zsxxsz
def86af3be 完善了 json 解析器
按 json 文档规范,完善了 json 解析器的相关模块
2013-12-29 21:09:36 +08:00
zsxxsz
95993e39be add feature for json lib and add some json samples
add feature for json lib and add some json samples
2013-12-27 22:38:17 +08:00
zsxxsz
5a859613d8 add new master service template
add new master service template
2013-12-20 21:03:12 +08:00
zsxxsz
4a219509b9 acl.3.0.14 release
some new features, and some bug fixed
2013-12-07 20:31:59 +08:00
zsxxsz
415de6f5c6 acl.3.0.13 release
acl.3.0.13 release
2013-11-05 22:23:23 +08:00
zsxxsz
dcdebd5f9c add thread, thread_pool for lib_acl_cpp
add thread, thread_pool for lib_acl_cpp, and other bugfix
2013-10-19 23:13:19 +08:00
zsxxsz
ef9e6de684 add some feature for udp
support udp; modify event interface
2013-09-28 09:00:07 +08:00
zsxxsz
cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00