Commit Graph

723 Commits

Author SHA1 Message Date
shuxin   zheng
d534da296c build ok by xcode 2021-09-16 15:54:16 +08:00
shuxin   zheng
cbdddcca4d optimize fiber for windows platform 2021-09-16 15:17:40 +08:00
郑树新
f3423ef849 optimize fiber module for Windows GUI 2021-09-16 14:57:37 +08:00
郑树新
c0719a1b2e optimize vc projects 2021-09-14 18:34:21 +08:00
郑树新
78b14993ef test fiber module for Windows GUI 2021-09-13 16:55:48 +08:00
郑树新
3ee786f06b add one GUI demo for using acl fiber 2021-09-13 16:55:27 +08:00
郑树新
25067f8cb1 add Windows Gui demo HttpGet 2021-09-13 00:19:49 +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
郑树新
6279631074 test fiber module on windows 2021-09-08 18:46:38 +08:00
郑树新
8b50e80af3 optimize DNS of fiber for windows 2021-09-08 00:17:57 +08:00
郑树新
e9ea53d74b the thread fiber should be checked when stopping fiber schedule 2021-09-06 22:44:20 +08:00
郑树新
a4fb983866 test fiber for Win GUI 2021-09-06 16:50:23 +08:00
郑树新
a6f2e61d8c test fiber_tbox for win GUI ok 2021-09-05 23:29:29 +08:00
郑树新
ce60ce7150 fixed bug in acl_atomic.c and atomic.c 2021-08-25 16:28:07 +08:00
郑树新
e0601e582f test some fiber module on windows 2021-08-23 18:41:23 +08:00
郑树新
ff71cebfae test fiber on windows 2021-08-23 11:21:59 +08:00
zhengshuxin
f2db150306 format code 2021-08-22 23:28:21 +08:00
郑树新
9d3f6d5cfd test API hook for fiber module on Windows platform. 2021-08-22 23:15:38 +08:00
郑树新
227a958fd8 add lost project files 2021-08-19 23:40:20 +08:00
郑树新
2f47091920 test winapi hook in fiber module on Windows platform. 2021-08-19 23:31:12 +08:00
郑树新
0b96b4f201 test API hook for fiber module on Windows platform. 2021-08-19 22:39:42 +08:00
zhengshuxin
174b1638f6 test fiber module 2021-08-19 22:18:37 +08:00
郑树新
04aaede734 optimize fiber module by hooking system API on windows 2021-08-19 21:45:41 +08:00
zhengshuxin
099b658685 optimizing fiber module 2021-08-18 16:32:34 +08:00
郑树新
1f013d27e4 add detours module in fiber 2021-08-18 16:26:06 +08:00
郑树新
266e3c78ff add lost files of fiber module 2021-08-18 16:25:30 +08:00
郑树新
2d04980910 optimizing fiber module 2021-08-18 16:07:35 +08:00
zhengshuxin
d0b031f3b6 test keep-alive of http module 2021-07-13 16:17:28 +08:00
shuxin   zheng
1a48b07d9f the even waiting timeout should be restored in acl_fiber_poll/epoll_wait and the 100 ms limit discarded when timeout == 0 2021-06-06 10:05:02 +08:00
zhengshuxin
dbf91ceca8 use -Wanalyzer in gcc to check some warning in acl 2021-02-13 15:15:14 +08:00
zhengshuxin
23b0f0c5af fixed some compiling warning on windows 2021-02-09 15:04:23 +08:00
zhengshuxin
165d327357 fixed some compiling warning when some modules were disabled. 2021-02-07 09:54:45 +08:00
zhengshuxin
a3db7f9466 add one sample for testing fiber 2021-02-05 23:39:02 +08:00
shuxin   zheng
ce41cda3c0 fixed compiling error for windows 2021-02-03 18:37:16 +08:00
zhengshuxin
96c35cabb3 test fiber demo 2021-02-02 16:45:16 +08:00
zhengshuxin
b63287774d support read/write timeout by setsockopt in libfiber 2021-01-30 09:11:39 +08:00
zhengshuxin
6b7ae7b883 the socket of one fiber can be closed of another fiber 2021-01-29 13:34:57 +08:00
zhengshuxin
f927b4d736 fiber sem & lock can also be killed by another fiber 2021-01-28 14:58:48 +08:00
zhengshuxin
28feaf3c28 add demos for testing close operation in the other fiber 2021-01-28 14:14:29 +08:00
zhengshuxin
4b5d501612 one fiber can close the socket of another fiber 2021-01-28 14:03:23 +08:00
zhengshuxin
baaccb37c0 build fiber ok by vc2019 2021-01-11 10:17:50 +08:00
shuxin   zheng
28bc44a8f0 there is one conllision when compiling fiber_server.cpp by vc2019 2021-01-11 09:31:54 +08:00
zhengshuxin
684e1e445e test redis_pipeline 2021-01-09 10:48:53 +08:00
shuxin   zheng
f746ee9b6d acl redis_pipeline module is ok 2021-01-08 14:35:25 +08:00
shuxin   zheng
ab2d78efaf optimize redis_pipeline 2021-01-07 16:35:12 +08:00
zhengshuxin
d811990ade optimize redis_pipeline 2021-01-06 10:07:31 +08:00
zhengshuxin
ebc4adb376 optimize and test redis_pipeline module 2021-01-05 15:42:25 +08:00
zhengshuxin
52181516f3 test redis_pipeline mode 2021-01-03 23:00:24 +08:00
zhengshuxin
d284f41e66 modify redis sample 2021-01-03 18:58:26 +08:00
zhengshuxin
4454e974f0 modify sample for testing redis in fiber mode 2021-01-03 18:03:58 +08:00
zhengshuxin
6554585b29 optimize redis_pipeline 2021-01-02 20:48:36 +08:00
zhengshuxin
f15e6718f0 add one sample for testing redis_pipeline in fiber mode 2021-01-01 21:41:55 +08:00
shuxin   zheng
048b0fefcb optimize projects for Android Studio. 2020-12-10 16:57:31 +08:00
shuxin   zheng
29d9902ead build ok by Android Studio with ndk12b 2020-12-10 10:29:29 +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
shuxin   zheng
9c853ab7f8 fixed bug in one test demo for testing fiber dns module. 2020-11-01 20:21:21 +08:00
shuxin   zheng
d2ed2e8b29 test building reply package by rfc1035 module 2020-10-24 14:28:15 +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
752f5b6de3 fixed bug in demo 2020-10-22 16:00:28 +08:00
zhengshuxin
ce7c7c093a fixed bug in fiber dns module 2020-10-22 15:02:58 +08:00
shuxin   zheng
593fb7693d test fiber and dns 2020-10-22 10:59:12 +08:00
zhengshuxin
35804a3bb6 test dns module 2020-10-21 17:19:38 +08:00
shuxin   zheng
7e89735ac1 dns module has been ready! 2020-10-21 15:48:40 +08:00
郑树新
6fae4064d6 build fiber module ok by vc 2020-10-20 21:13:09 +08:00
shuxin   zheng
d9585063d6 modify xcode project for rewriting dns module 2020-10-20 18:31:28 +08:00
zhengshuxin
a9b2a20963 rewrite dns module 2020-10-20 18:30:00 +08:00
shuxin   zheng
b86e0e4df7 add lost files 2020-10-20 17:24:18 +08:00
shuxin   zheng
791bbc672a Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2020-10-20 17:22:52 +08:00
shuxin   zheng
cccec9661c rewriting dns module. 2020-10-20 17:22:07 +08:00
郑树新
3cd10f87a1 build ok by vc 2020-10-19 22:25:35 +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
shuxin   zheng
1ce0d2a730 fixed one bug in tcp_nodelay.c 2020-10-16 22:22:41 +08:00
shuxin   zheng
5ca8be3da4 rename dns_init to fiber_dns_init internal 2020-10-09 14:16:46 +08:00
zhengshuxin
e77b95f2ce test aio server in fiber mode 2020-10-08 22:09:34 +08:00
shuxin   zheng
72bb6b909d restore fiber 2020-10-08 17:17:21 +08:00
shuxin   zheng
a1383bf620 test fiber 2020-10-08 15:15:33 +08:00
shuxin   zheng
2006d57ce1 add aio demo running in fiber mode 2020-09-30 22:29:40 +08:00
shuxin   zheng
531d8aeb21 test fiber module on Android. 2020-09-29 19:17:23 +08:00
shuxin   zheng
c414f7afab acl fiber can support Android now. 2020-09-27 23:35:04 +08:00
zhengshuxin
712f2c1781 don't warn when compiling fiber module 2020-09-26 23:45:30 +08:00
shuxin   zheng
17adcd823e add fiber demo for IOS 2020-09-26 23:14:11 +08:00
shuxin   zheng
72ae883ba0 add boost coroutines written by asm. 2020-09-26 22:46:31 +08:00
shuxin   zheng
243748d07b format code 2020-09-07 23:47:00 +08:00
shuxin   zheng
24124b87e7 format code, replace "\n" with "\r\n" for all source files. 2020-08-21 14:55:03 +08:00
zhengshuxin
d800ca468e use MD compiling options for all vc projects 2020-08-06 15:42:37 +08:00
郑树新
a6976962cd fixed compiling error by vc2012 2020-07-26 16:28:16 +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
zhengshuxin
8995284180 test redis pipeline 2020-07-20 22:41:40 +08:00
zhengshuxin
88c756a462 fixed compiling error for samples with ssl 2020-07-16 09:12:39 +08:00
shuxin   zheng
5a1c3b7bf5 There's a better way to check if the given fd is socket, pipe or fifo. 2020-07-12 23:35:39 +08:00
shuxin   zheng
112dcdbba3 rewrite http service templates in wizard 2020-06-29 14:34:16 +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
27c8892cec test http server 2020-06-26 21:45:51 +08:00
shuxin   zheng
9ee5ed7fad rename method name 2020-06-26 15:34:55 +08:00
shuxin   zheng
96b2e94f8a rename methods names 2020-06-26 15:33:31 +08:00
shuxin   zheng
dee4ebeaea http module can response json&xml data 2020-06-26 15:21:13 +08:00
shuxin   zheng
ccce38b52d test demo 2020-06-26 10:33:10 +08:00
shuxin   zheng
c3bed219dd add lost file for demo 2020-06-25 12:00:56 +08:00
shuxin   zheng
e65dbcba3e optimize http server module written by c++11 in libfiber 2020-06-25 11:58:01 +08:00
zhengshuxin
640b7b6e02 test http_server module of fiber on Linux 2020-06-24 17:35:37 +08:00
zhengshuxin
efbad08c86 test demo on Linux 2020-06-24 16:49:45 +08:00
shuxin   zheng
d30e84f888 add http server module in fiber written by c++11 2020-06-24 16:46:05 +08:00
zhengshuxin
b511572d47 optmize go_fiber 2020-06-23 11:46:53 +08:00
shuxin   zheng
b324fba32f disable USE_FAST_TIME which maybe incorrect in some case. 2020-06-20 14:43:57 +08:00
shuxin   zheng
6641dc1cac add lost c++11 header in go_fiber.hpp 2020-06-13 14:49:31 +08:00
shuxin   zheng
83ba45c98a optimize go fiber api for c++11 2020-06-13 14:33:08 +08:00
shuxin   zheng
ff74ac0377 optimize mem checker module 2020-06-13 10:54:34 +08:00
shuxin   zheng
c4ae1840d7 modify CMakeLists files 2020-06-02 16:51:35 +08:00
zhengshuxin
8fb50aa0e6 build ok with different gcc version 2020-05-13 15:42:50 +08:00
zhengshuxin
a0897815e0 merge dns module 2020-05-11 11:29:47 +08:00
郑树新
a02c55173a disable compiling dns module in libfiber for windows. 2020-05-10 20:25:04 +08:00
shuxin   zheng
4e2ddf3aa1 test demo of fiber for resolving dns 2020-05-05 00:29:38 +08:00
zhengshuxin
da299c6ae6 fixed compiling warning for dns.c in libfiber.c 2020-05-05 00:20:51 +08:00
zhengshuxin
56d1c7e443 fixed dns module bug of libfiber for gcc9 2020-05-04 23:16:52 +08:00
shuxin   zheng
ea61799339 modify readme of lib_fiber 2020-03-26 13:20:53 +08:00
shuxin   zheng
58b0e0000a modify readme of lib_fiber 2020-03-26 12:35:20 +08:00
shuxin   zheng
c65333bbc9 change fiber moduel's readme 2020-03-26 12:21:12 +08:00
shuxin   zheng
20139a7fa4 change fiber module's readme 2020-03-26 12:18:35 +08:00
shuxin   zheng
f8152a5252 add lost files 2020-03-26 12:00:56 +08:00
shuxin   zheng
a8e7eabe05 modify readme for fiber module 2020-03-26 11:56:57 +08:00
shuxin   zheng
15ba8bf57e test http_thread 2020-03-23 22:33:34 +08:00
shuxin   zheng
d87b1c4e64 add test sample http_request_manager for testing fiber and connect_manager. 2020-03-14 20:52:16 +08:00
shuxin   zheng
95883c415f fixed compiling waring on MacOS 2020-02-15 19:26:41 +08:00
zhengshuxin
cf6aab9e9b test fiber in reactor way 2020-02-09 21:50:37 +08:00
shuxin   zheng
f4c063ebc3 test fiber in reactor way 2020-02-09 20:45:17 +08:00
zhengshuxin
dee7833d1d fixed bugs in hook/epoll.c in fiber module for memory overflow 2020-01-25 17:57:00 +08:00
zhengshuxin
4321cfc6c2 add one fiber demo 2020-01-25 14:45:24 +08:00
郑树新
fd2038dd58 !3 Compile on raspberry pi 3B,3B+,4B
Merge pull request !3 from wfeii1980/master
2020-01-09 11:02:46 +08:00
zhengshuxin
0a14cdd275 prepare release new version 2020-01-09 10:17:00 +08:00
zhengshuxin
56afc8cf80 compiling acl 2020-01-07 10:36:29 +08:00
shuxin   zheng
4a7dce51ba acl::mbedtls_conf can load three mbedtls dynamic libs 2020-01-06 15:29:03 +08:00
shuxin   zheng
1222309a1d test fiber demos with ssl 2020-01-05 20:23:34 +08:00
wfeii1980
fb928d5103 update lib_fiber/c/src/stdafx.h.
Compile on raspberry pi 3B,3B+,4B
2019-12-09 09:57:25 +08:00
shuxin   zheng
c57e5e5876 compile libfiber for ARM platform 2019-12-03 13:43:53 +08:00
zhengshuxin
bda63febae fatal if fbase->event_in is invalid in fbase_event::fbase_event_open 2019-10-18 10:07:26 +08:00
ruki
1c0ff5d208 update xmake.lua: export public includedirs 2019-10-14 09:34:37 +08:00
zhengshuxin
8d4dff9f18 building with xmake 2019-10-08 16:36:16 +08:00
zhengshuxin
b698693b3c build ok for FreeBSD 2016-01-14 14:45:37 +08:00
zhengshuxin
85374450d0 optimize: many optimizing for decrease libs' size for mobile platom;
bugfix: fixed one bug in event_epoll.c of fiber lib.
2019-09-19 10:33:10 +08:00
shuxin   zheng
152415550b upgrade xcode projects of acl 2019-09-13 17:06:46 +08:00
zhengshuxin
ed1521b36b build ok by xmake 2019-09-03 22:28:50 +08:00
zsxxsz
51b1789300 optimize WinEchod sample 2019-08-18 13:10:26 +08:00
zsxxsz
2ee35f6434 fixed bugs for restarting fiber IO scheduling. 2019-08-17 22:07:51 +08:00
zsxxsz
2153e5a117 format code. 2019-08-17 22:04:57 +08:00
郑树新
f66a47735b fixed compiling error by vc 2019-08-16 18:24:54 +08:00
root
72a5287da5 add memory using debug info. 2019-08-16 18:17:11 +08:00
郑树新
5e8335f011 build ok for windows. 2019-08-15 15:25:28 +08:00
zhengshuxin
946bc1944e use conditional compiling for hooking system API getimeofday 2019-08-12 14:52:09 +08:00
shuxin   zheng
8d96beb9b0 format code 2019-08-11 11:12:39 +08:00
shuxin   zheng
574800f456 event_kqueue.c->kevent_fflush should use hooked API __sys_kevent 2019-08-11 11:10:43 +08:00
zhengshuxin
0c4901f531 fixed one bug in hooked API sleep in io.c 2019-08-08 14:33:32 +08:00
zhengshuxin
a186db64f8 fixed compiling error on maxos 2019-08-07 14:30:12 +08:00
zhengshuxin
e20a39ebef fixed one compiling error on macos 2019-08-07 14:26:24 +08:00
zhengshuxin
42d2bd5684 fixed one bug in hooked API gettimeofday for precision. 2019-08-06 10:28:31 +08:00
zhengshuxin
df843708f8 format code style 2019-07-31 22:06:54 +08:00
zhengshuxin
85812e6f1c improvement ring's performance 2019-07-31 22:00:41 +08:00
zhengshuxin
a0b258eb28 test gettimeofday ok 2019-07-31 16:32:17 +08:00
zhengshuxin
0ee5867c9d add one sample for testging gettimeofday 2019-07-31 16:31:36 +08:00
zhengshuxin
d8d624ee98 use utf8 for text files. 2019-07-30 23:52:48 +08:00
zhengshuxin
b02dfd34c6 speedup gettimeofday() by using some asm codes from DPDK 2019-07-30 23:48:25 +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
zhengshuxin
3b1053652f fixed bug in fiber_sem.c 2019-07-17 09:32:20 +08:00
zhengshuxin
dd1f0b8eba modify Makefile 2019-06-26 23:06:32 +08:00
zhengshuxin
b2b3cdae9a Merge branch 'master' into github-zsx-master 2019-06-26 22:57:56 +08:00
郑树新
cff0958e2c
Merge branch 'master' into master 2019-06-26 22:52:56 +08:00
zhengshuxin
1a3adc67ef add features in todo 2019-06-25 10:54:55 +08:00
zhengshuxin
123328c1af remove unused comments 2019-06-24 13:06:06 +08:00
Dep user
84e7b857e5 fix compile error. 2019-06-18 14:02:42 +08:00
zsxxsz
cc202891ec compiling ok on Ubuntu12 32-bits 2019-06-17 22:31:43 +08:00
zsx
242250d5e0 add tcp_keeper module into xcode project 2019-06-11 19:43:24 +08:00
zhengshuxin
b71b8840bf replace assert with abort 2019-05-18 22:03:53 +08:00
zhengshuxin
77240768e5 remove unused files 2019-05-18 17:03:28 +08:00
zhengshuxin
064a4c325c optimize fiber_sem 2019-05-17 11:11:03 +08:00
zhengshuxin
0ffeedfcd4 fixed bugs in fiber_sem.c/fiber_lock.c 2019-05-16 16:48:48 +08:00
zhengshuxin
8b77b0456a safety & feature: add nocopyable limit for many class to avoid potential problem 2019-05-09 13:57:51 +08:00
zhengshuxin
4760ac19c9 tcp_keeper: add sync parameter to control if connect the given addr directly 2019-04-30 17:54:08 +08:00
zhengshuxin
d62bb45cd6 tcp_keeper: fixed one bug in keeper_conn.cpp;
server_socket: remove one constructur method;
2019-04-28 16:17:17 +08:00
zhengshuxin
82110b5dbd modify samples 2019-03-18 17:03:23 +08:00
zsx
669f0601e7 add comment in fiber_server.cpp 2019-03-06 13:57:39 +08:00
zsx
154fd0f71d don't connect first in tcp_keeper 2019-01-21 17:42:50 +08:00
zsx
b926d78534 optimize tcp_keeper 2019-01-17 14:10:59 +08:00
zsx
db2d293a3e tcp_keeper is ok! 2019-01-15 11:57:19 +08:00
郑树新
6e9691397a build ok for vc 2019-01-14 15:33:51 +08:00
zsx
1edd724a8d fixed one bug in fiber for stopping scheduling automatically 2019-01-14 14:34:14 +08:00
zsx
1cd42a9213 optimize tcp_keeper 2019-01-14 14:34:00 +08:00
zhengshuxin
2081b206c2 set free_obj's default value to true 2019-01-02 11:25:17 +08:00
zhengshuxin
480a8c9403 optimise fiber 2019-01-02 11:12:55 +08:00
zsx
03e2cf0a31 optimize tcp_keeper 2018-12-31 22:02:21 +08:00
zsx
5bb7daf807 tcp_keeper: add ttl controling for connection and connections pools;
http_request/http_client add controling parameters
2018-12-29 15:42:03 +08:00
zsx
ac311dd2d1 disable valgrind 2018-12-28 22:22:58 +08:00
zsx
ea8462f1ef add tcp_keeper class for tcp connections keepalive 2018-12-28 21:46:01 +08:00
zsx
fcfaddcf35 add syscall for hook system API 2018-12-27 17:35:18 +08:00