Commit Graph

529 Commits

Author SHA1 Message Date
shuxin   zheng
294c672158 optimize log module of fiber 2022-03-23 18:48:31 +08:00
zhengshuxin
043eae1fee optimize hook/poll.c 2022-03-23 17:33:10 +08:00
zhengshuxin
4da53a2d6d optimize epoll.c for hooking system API in fiber module. 2022-03-23 16:00:31 +08:00
shuxin   zheng
2072e84431 build ok on MacOS 2022-03-22 16:12:22 +08:00
zhengshuxin
1ced194a2b optimize the API epoll's hooking in fiber module 2022-03-22 15:55:58 +08:00
zhengshuxin
921e2b4971 optimize the epoll API when checking IO timeout process same as poll API in fiber module 2022-03-18 15:04:24 +08:00
shuxin   zheng
9fceb75a52 support MacOS arm64 2022-03-15 16:32:07 +08:00
zhengshuxin
efed44582f modify compiling condition which jump lib should be used on diffrent platform 2022-03-15 16:25:32 +08:00
郑树新
c738ab47b7
Merge pull request #267 from dragon-zhang/dev_support_m1
fiber support apple m1 chip
2022-03-15 16:07:12 +08:00
hailang
6fe9f020bc fiber support apple m1 chip 2022-03-15 14:58:36 +08:00
郑树新
aa4ce34e22 compiling fiber module on windows platform 2022-03-14 23:57:05 +08:00
zhengshuxin
1c1d979cec Don't free fe when read error and the fd isn't a socket in acl_fiber_read() 2022-03-14 23:32:24 +08:00
zhengshuxin
7d2e355fb6 optimize and test fd closing process in fiber module 2022-03-14 18:06:27 +08:00
shuxin   zheng
424ef402bb test fiber 2022-03-13 21:25:11 +08:00
shuxin   zheng
6667c91705 optimize event module of fiber 2022-03-13 15:51:03 +08:00
zhengshuxin
69d5e8bd63 test closing fd in another fiber 2022-03-12 23:59:32 +08:00
郑树新
f63b1af090 add new files in vc project 2022-03-10 19:16:52 +08:00
zhengshuxin
6945a9f1cc add more comments for fiber module 2022-03-09 23:59:10 +08:00
zhengshuxin
fc3f1d5fee optimize hooked API in poll.c 2022-03-08 18:12:04 +08:00
shuxin   zheng
d120059d83 build ok on MacOS 2022-03-08 17:03:06 +08:00
zhengshuxin
1310323d77 optimize performance by caching temp object in fiber module 2022-03-08 16:05:53 +08:00
zhengshuxin
14837868c2 optimize timer module in fiber 2022-03-08 15:10:03 +08:00
zhengshuxin
7dc678dff1 test fiber 2022-03-08 07:28:49 +08:00
root
c532379f51 optimize performance by decrease calling gettimeofday();
optimize performance in the hooked API for poll and epoll;
2022-03-06 16:24:34 +08:00
郑树新
28a80b1c06 test fiber in iocp mode 2022-03-04 17:42:30 +08:00
郑树新
3044f6980b optimize closing another's fd in iocp mode on windows 2022-03-04 00:27:15 +08:00
zhengshuxin
2104e75f6e optimize closing another fiber's fd in one fiber 2022-03-03 22:24:52 +08:00
zhengshuxin
6d440dd494 optimize the closing fd process from anohter fiber 2022-03-03 18:47:23 +08:00
zhengshuxin
48a57a5abe optimize the process that closing one fd from another fiber 2022-03-03 12:42:01 +08:00
zhengshuxin
7fc6c823ab add compiling options for handling callback process 2022-03-02 22:41:10 +08:00
zhengshuxin
8cd6733b80 clear IO waiting status in hook/epoll.c in fiber module 2022-03-02 21:22:12 +08:00
zhengshuxin
18979c88a5 optimize for closing fd in another fiber from the running fiber 2022-03-02 18:33:09 +08:00
shuxin   zheng
6313725b14 adding new feature that one fiber can close another fiber's fd 2022-03-01 19:04:30 +08:00
zhengshuxin
a60dbd21e1 adding new feature that one fiber can close another fiber's fd 2022-03-01 19:02:05 +08:00
郑树新
396d634e83 set SO_LINGER option for the socketpair's implement on windows. 2022-02-27 17:41:51 +08:00
zhengshuxin
0fe52cf465 test setting timeout by setsockopt in fiber module 2022-02-20 23:44:30 +08:00
郑树新
c231ca4ad9 test fiber on windows 2022-02-20 16:56:04 +08:00
zhengshuxin
a48c6a9613 optimize the APIs for poll and epoll 2022-02-20 16:26:18 +08:00
zhengshuxin
0a583194c8 test fiber 2022-02-20 13:22:02 +08:00
zhengshuxin
116566ffc0 Do not put the fiber in ready quque if the fiber has been killed by the other fiber. 2022-02-20 13:17:28 +08:00
zhengshuxin
d1a93c1aa6 Do not set no-blocking in fiber_file_open_xxx() 2022-02-20 13:00:25 +08:00
zhengshuxin
f940f2dca3 seperate read/write fiber for reading and writing process 2022-02-20 11:39:46 +08:00
郑树新
3c4b8dab92 fixed compiling libfiber's error on vc2012 2022-02-17 19:26:48 +08:00
zhengshuxin
f93fe96ec1 optimize and test fiber module 2022-02-16 23:01:54 +08:00
zhengshuxin
d4a829102f test fiber 2022-02-16 18:16:58 +08:00
郑树新
3fe4ad1a84 optimize and fixed bugs in fiber module when using IOCP event 2022-02-15 22:34:10 +08:00
郑树新
2b9418a396 optimize for windows platform by conditional building. 2022-02-04 13:48:04 +08:00
root
edf0b72aa3 porting to Alpine Linux ok 2022-01-27 19:37:10 +00:00
root
e29632e52e porting to ALPINE Linux 2022-01-27 18:46:55 +00:00
郑树新
2f63cb52b7 delete debug code 2022-01-26 22:41:17 +08:00
郑树新
e5f73baa0f IOCP in fiber module supports GetQueuedCompletionStatusEx() 2022-01-26 22:34:50 +08:00
郑树新
b1ed096912 test iocp 2022-01-26 18:47:38 +08:00
郑树新
de77ff891c optimize and test iocp 2022-01-26 18:08:55 +08:00
shuxin   zheng
d7fa5eab36 test httpd_proxy demo 2022-01-24 18:36:08 +08:00
zhengshuxin
b2860d6d3d build fiber module on linux 2022-01-23 23:51:29 +08:00
郑树新
566961f9a4 fixed some bugs in iocp mode in fiber module 2022-01-23 23:46:19 +08:00
郑树新
dbdcfb5511 add socket control for connecting server with timeout in non-blocking 2022-01-22 09:44:28 +08:00
zhengshuxin
f5ae880e8e NON_BLOCKING shouldn't be set when creating one socket. 2022-01-21 18:04:30 +08:00
zhengshuxin
0344633fbd event_select should set wset in select() 2022-01-21 17:43:54 +08:00
zhengshuxin
16b2a60d20 fixed bugs that the connecting timeout process isn't available in fiber mode 2022-01-21 17:31:50 +08:00
zhengshuxin
e516804b78 fixed one bug in acl_fiber_delay() that the event loops too quickly for the event waiting timeout been set 0. 2021-11-23 17:40:37 +08:00
郑树新
72d6b1f0fc optimize and test iocp of fiber module. 2021-10-12 18:01:04 +08:00
郑树新
a8655cfb73 format code 2021-10-12 14:32:10 +08:00
shuxin   zheng
91474bbd3e build ok for Unix 2021-10-12 11:39:41 +08:00
郑树新
c43293a6ac optimize and test fiber event in iocp mode 2021-10-12 11:34:19 +08:00
郑树新
96a825025d optimize and test iocp mode in fiber module 2021-10-11 23:31:14 +08:00
郑树新
4af6484b9a optimize iocp event in fiber module. 2021-10-11 18:48:24 +08:00
郑树新
6f12882b80 test iocp 2021-10-10 23:09:32 +08:00
郑树新
fca21901ac test iocp for fiber module 2021-10-07 23:13:21 +08:00
shuxin   zheng
5c96afd9ce optimize code 2021-09-24 09:10:14 +08:00
shuxin   zheng
d2d376ce73 optimize socketpair 2021-09-24 08:57:02 +08:00
郑树新
cf5bcf5acf optimize socketpair.c 2021-09-23 22:37:56 +08:00
郑树新
cde03a74d4 optimize vs projects 2021-09-16 19:27:09 +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
郑树新
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
郑树新
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
郑树新
9d3f6d5cfd test API hook for fiber module on Windows platform. 2021-08-22 23:15:38 +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
郑树新
2d04980910 optimizing fiber module 2021-08-18 16:07:35 +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
shuxin   zheng
ce41cda3c0 fixed compiling error for windows 2021-02-03 18:37: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
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
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
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
ce7c7c093a fixed bug in fiber dns module 2020-10-22 15:02:58 +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
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
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
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
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
b324fba32f disable USE_FAST_TIME which maybe incorrect in some case. 2020-06-20 14:43:57 +08:00
shuxin   zheng
c4ae1840d7 modify CMakeLists files 2020-06-02 16:51:35 +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
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
95883c415f fixed compiling waring on MacOS 2020-02-15 19:26:41 +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
郑树新
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
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
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
zhengshuxin
ed1521b36b build ok by xmake 2019-09-03 22:28:50 +08:00
zsxxsz
2ee35f6434 fixed bugs for restarting fiber IO scheduling. 2019-08-17 22:07:51 +08:00