Commit Graph

744 Commits

Author SHA1 Message Date
hailang
3ddff50476 mac support cross compile 2022-04-10 15:43:29 +08:00
root
40dc44f72d test memcpy from Clickhouse 2022-04-09 20:02:58 +08:00
zhengshuxin
7c1660e415 optimize share stack mode for fiber 2022-04-08 08:10:14 +08:00
zhengshuxin
12006e2ff1 shared stack mode can be selected by users 2022-04-08 07:32:06 +08:00
zhengshuxin
f3ff13cc37 add fiber attr to control if using share stack when create one fiber. 2022-04-07 23:48:05 +08:00
zhengshuxin
a81e8880c4 Disable shared stack in default mode 2022-04-07 09:31:37 +08:00
zhengshuxin
9c8fc9dba4 master_fiber.cpp can be used in shared stack mode. 2022-04-06 18:21:51 +08:00
zhengshuxin
a764811066 acl redis module can be used in fiber shared stack mode. 2022-04-06 17:53:33 +08:00
zhengshuxin
67b964c8b0 optimize for shared stack for redis client lib in pipeline mode 2022-04-05 22:17:16 +08:00
zhengshuxin
da8cb4b5ed test httpd_proxy 2022-04-04 12:24:16 +08:00
zhengshuxin
21503e93cd optimize and test shared stack in fiber module 2022-04-03 21:52:23 +08:00
zhengshuxin
e9b62fdc14 fixed bugs in httpd_proxy demo 2022-04-02 16:31:12 +08:00
zhengshuxin
6cf533d280 fixed one compiling warning on Ubuntu 2022-04-01 23:08:00 +08:00
zhengshuxin
c4509a539b test shared stack 2022-04-01 19:06:54 +08:00
zhengshuxin
b7ad2688dc test demo for shared stack 2022-04-01 17:43:42 +08:00
zhengshuxin
f4417b313a add more demos for testing shared stack 2022-04-01 17:37:58 +08:00
zhengshuxin
cadde6f996 add acl_fiber_get_shared_stack_size() 2022-04-01 14:39:54 +08:00
zhengshuxin
2d0dd07155 test fiber 2022-03-31 21:44:43 +08:00
zhengshuxin
01b0683a80 delete unused files 2022-03-31 21:28:52 +08:00
zhengshuxin
300de6b7e4 poll.c can support shared stack 2022-03-31 18:35:14 +08:00
zhengshuxin
e9ab8794c1 test shared stack of fiber module 2022-03-31 07:37:20 +08:00
zhengshuxin
49d4f2d5ce The fiber module has supported shared stack mode to decrease memory usage for many cocurrent clients. 2022-03-30 19:11:25 +08:00
zhengshuxin
f46a765ff7 Disable debug for valgrind in Makefile 2022-03-27 18:51:05 +08:00
zhengshuxin
7007d4d1fb optimize event_epoll.c 2022-03-26 22:06:59 +08:00
zhengshuxin
9ace98a715 test fiber event 2022-03-26 14:18:31 +08:00
zhengshuxin
fd46bf0c70 Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2022-03-23 21:24:05 +08:00
zhengshuxin
6520151c67 Don't write log in fiber_io_check() to avoid writing log recursively when user hooks the log process. 2022-03-23 21:22:56 +08:00
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
zhengshuxin
e1c6f218de add one test demo 2022-03-23 10:07:10 +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
郑树新
1801603682 add project for demo fiber_tbox on windows 2022-02-24 23:05:43 +08:00
郑树新
1921afab07 test fiber_tbox on windows 2022-02-24 23:03:10 +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
zhengshuxin
8d7cf5cdfc build samples ok on WSL ubuntu 2022-01-28 12:28:21 +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
shuxin   zheng
0c6ace92e0 test fiber demo 2022-01-24 09:02:42 +08:00
zhengshuxin
1b010b8fd9 test fiber on linux 2022-01-23 23:56:48 +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
shuxin   zheng
a5416395ed test SO_RCVTIMEO in fiber mode 2022-01-21 21:41:28 +08:00
zhengshuxin
b8ab3c87bb test 2022-01-21 18:30:13 +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
ae61a9d432 Merge branch 'master' of gitee:zsxxsz/acl into gitee-master 2022-01-21 17:33:44 +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
郑树新
474c2258f5 test fiber on windows 2022-01-20 23:58:22 +08:00
郑树新
87bb2ea18f add fiber tests 2022-01-20 23:06:54 +08:00
zhengshuxin
17a08ea4aa test fiber demo 2022-01-13 23:28:23 +08:00
郑树新
2beca0cdce test fiber in multiple threads 2022-01-13 23:17:41 +08:00