Commit Graph

281 Commits

Author SHA1 Message Date
shuxin   zheng
f389e7c10c Add debug args for socket_stream::alive() API; 2024-08-15 16:37:04 +08:00
郑树新
353186995c Fixed compiling warning on windows. 2024-06-21 09:41:00 +08:00
shuxin   zheng
eb934d9601 Optimize split namevalue string. 2024-06-05 09:39:50 +08:00
zhengshuxin
f2e553bc98 Build acl by cosmocc. 2024-03-16 16:08:06 +08:00
zhengshuxin
5e7b208702 Add pre_exit callback before service exiting which is different with the old on_exit callback. 2024-03-01 17:23:27 +08:00
shuxin   zheng
599c839342 Add flags for connecting process. 2023-11-22 11:05:30 +08:00
zhengshuxin
0e6385db08 Build for windows. 2023-11-20 17:39:36 +08:00
shuxin   zheng
88f215e41c Optimize and test bind local network interface when connecting the remote server. 2023-11-18 14:53:25 +08:00
shuxin   zheng
0b8dd11dca Client socket can bind local interface when connecting to the remote server. 2023-11-17 18:49:11 +08:00
zhengshuxin
943714a932 Add prefix for avl_xxx to avoid libs conlition with the others including the same avl lib. 2023-10-13 15:23:52 +08:00
zhengshuxin
217dc1aa65 Add multicast in master udp service. 2023-09-20 18:23:03 +08:00
shuxin   zheng
fff2bed41b Adding multicast ... 2023-09-20 15:15:11 +08:00
shuxin   zheng
171fb80b82 Add demo in acl_cache2.h 2023-09-05 10:51:39 +08:00
zhengshuxin
fe6080522f Add lock API for ACL_HTABLE. 2023-09-03 17:22:37 +08:00
shuxin   zheng
dcf6ae2c51 test acl memdb module. 2023-08-24 11:29:17 +08:00
shuxin   zheng
267e017340 Add acl_htable_enter_r2() in lib_acl. 2023-08-22 10:09:41 +08:00
zhengshuxin
2563625613 fixed one compiling warning in fiber_hook.h 2023-06-25 09:49:49 +08:00
zhengshuxin
ab148987ce service templates in the mode of fiber or thread can bind wildcad addresses. 2023-05-25 19:00:22 +08:00
zhengshuxin
4699c2f4c0 ETIMEDOUT should be used other than ETIME. 2023-03-31 23:18:38 +08:00
zhengshuxin
8d371b0a17 Use ETIME other ETIMEDOUT on Unix-like OS. 2023-03-29 22:57:44 +08:00
zhengshuxin
2ac3eef044 Optimize htable module 2023-03-22 17:20:21 +08:00
zhengshuxin
76ee710b6c Optimize memory usage in acl. 2023-01-29 17:59:40 +08:00
zhengshuxin
e43f7e2410 make macro safety 2023-01-16 20:28:52 +08:00
zhengshuxin
150ef70ca9 optimize unitest module 2022-12-28 15:46:00 +08:00
zhengshuxin
9286a008c5 test 2022-10-26 07:03:34 -04:00
zhengshuxin
1ed47abeb1 optimize and test io_uring... 2022-10-08 15:15:21 -04:00
郑树新
f52536bd5a build dynamic DLL ok on windows 2022-09-14 16:24:54 +08:00
zhengshuxin
ae39d3ec94 optimize network IO module. 2022-08-29 17:09:02 +08:00
zhengshuxin
43c454a93d Don't close aio socket if there is some data waiting to be written in aio buffer. 2022-08-25 23:08:05 +08:00
shuxin   zheng
211b62d2ef add acl_localtime.c from redis to replace localtime_r() 2022-08-10 14:31:26 +08:00
郑树新
1ebb4554b6 compile on windows 2022-08-06 22:09:12 +08:00
zhengshuxin
e664f21494 build acl ok on Cygwin 2022-08-06 20:03:51 +08:00
zhengshuxin
13691baaa9 use configure name directly in service template. 2022-08-06 12:33:11 +08:00
zhengshuxin
d5bac0b0b1 optimize acl_master and service templates 2022-07-26 16:08:25 +08:00
zhengshuxin
72d9cc9402 delete unused codes 2022-07-22 09:57:27 +08:00
zhengshuxin
6da6a1dbd1 optimize size of the ACL_VSTRING object 2022-07-21 18:29:28 +08:00
shuxin   zheng
bf7a09bf2c Add one control if acl_master.log can be generated in alone mode for master service. 2022-06-12 20:32:08 +08:00
shuxin   zheng
6df3228b6f add mapping offset for string 2022-06-12 18:02:35 +08:00
zhengshuxin
95d385cbbe add readable API for socket fd 2022-06-01 12:49:49 +08:00
shuxin   zheng
ce0655e938 modify comments for ring structure 2022-05-11 18:42:08 +08:00
郑树新
54738f48d9 build ok on windows 2022-04-13 20:50:14 +08:00
zhengshuxin
2c7c9ce42e Fixed one dead lock bug in timer_callback() in master_base.cpp, where acl_event_request_timer() will be blocked by the mutex locked by the same thread, and the timer_callback() was called in event_timer_trigger() in events_timer.c in the mutex locking status. Just make the lock be a recursive lock. 2022-04-13 15:34:34 +08:00
郑树新
2b9418a396 optimize for windows platform by conditional building. 2022-02-04 13:48:04 +08:00
郑树新
eaa904c5e2 use InitOnceExecuteOnce on Windows platform 2022-02-02 19:54:33 +08:00
root
e29632e52e porting to ALPINE Linux 2022-01-27 18:46:55 +00:00
郑树新
cf9f39bba5 add precision for double type when building json 2022-01-10 22:41:07 +08:00
zhengshuxin
a27557a902 optimize aio closing process in weak network env. 2021-12-13 16:30:15 +08:00
zhengshuxin
d6c554a463 build all 2021-11-16 14:45:06 +08:00
zhengshuxin
0b76431269 rename the old function acl_getsocktype to acl_getsockfamily and add the new acl_getsocktype 2021-11-09 22:00:57 +08:00
zhengshuxin
cfed77c897 optimize some macro for ACL_VSTREAM 2021-10-27 15:29:27 +08:00