Commit Graph

63 Commits (fee1e28348611efddda59537a3893a9cb1837448)

Author SHA1 Message Date
YuQing fee1e28348 SF_NIO_STAGE_CONNECT stage should call inc_connection_current_count 2023-09-22 18:44:32 +08:00
YuQing be9b71422f nio support callback connect_done for client 2023-09-22 18:27:12 +08:00
YuQing 3c7ebd14d9 MUST call fast_timer_remove after ioevent_detach 2023-09-19 09:37:17 +08:00
YuQing 9fad04f3f9 nio threads support busy_polling_callback 2023-09-18 16:19:10 +08:00
YuQing 0eb842dc09 sf_nio.c: check_task adapt to RDMA 2023-09-14 09:50:49 +08:00
YuQing dedc023235 add parameter comm_type when load from config 2023-09-07 09:38:21 +08:00
YuQing b3334d2ad5 add function sf_set_body_length 2023-09-05 16:45:51 +08:00
YuQing 5a29dffc50 load RDMA APIs from library 2023-09-05 07:27:15 +08:00
YuQing 2839183433 move type SFNetworkType to libfastcommon as FCNetworkType 2023-09-04 11:01:36 +08:00
YuQing 36e4922440 callbacks impl. for socket 2023-09-03 18:35:31 +08:00
YuQing 2a245a06aa sf_file_writer.[hc] support config call_fsync for performance 2023-06-10 14:32:00 +08:00
YuQing 8bedbb6f27 code simplification for last commit 2023-02-23 10:51:46 +08:00
YuQing 92fbcab0f4 bugfixed: fastdfs issue #620
set notify.stage to SF_NIO_STAGE_NONE before deal_notified_task
2023-02-23 10:30:40 +08:00
YuQing a9ebe20b5b upgrade version to 1.1.25 2023-02-15 21:04:04 +08:00
YuQing 13990e3747 code simplification for epoll edge trigger 2023-02-12 20:04:01 +08:00
YuQing 294ad5e636 use field notify_next for notify queue of nio thread 2023-02-12 19:47:31 +08:00
YuQing c1ae024da5 enable epoll edge trigger by global variable epoll_edge_trigger 2023-02-12 10:38:46 +08:00
YuQing 69f117c956 check socket connected on unexpected stage 2022-12-30 17:23:18 +08:00
YuQing cf4856e04b support send_done_callback for FastDFS 2022-09-14 10:38:38 +08:00
YuQing a0f16319e0 struct sf_shared_mbuffer: Must move buff to last 2022-08-30 11:07:31 +08:00
YuQing 8b22655352 add function sf_release_task_shared_mbuffer 2022-08-28 17:25:50 +08:00
YuQing 2ebb51dcfd support alloc_recv_buffer callback 2022-08-25 18:22:16 +08:00
YuQing 5da65a172c request_metadata.c: check data_version > 0 for performance 2022-07-08 11:23:32 +08:00
YuQing b8f7a86060 avoid writev iovcnt overflow 2021-06-08 15:40:49 +08:00
YuQing d11243964b call writev for iovec array 2021-06-08 14:19:11 +08:00
YuQing 67b412fb88 bugfixed: MUST set stage to SF_NIO_STAGE_NONE first for re-entry 2021-02-10 21:38:45 +08:00
YuQing 11165cbb20 log NULL continue_callback with SF_NIO_STAGE_CONTINUE 2021-02-09 22:25:32 +08:00
YuQing a6b9d8d08d TCP_SET_QUICK_ACK for Linux 2020-12-06 17:00:14 +08:00
YuQing acf27b0e4f use newest fast_timer in libfastcommon 2020-11-23 11:46:22 +08:00
YuQing 4a92e31272 sf_nio_notify more graceful 2020-11-09 09:18:25 +08:00
YuQing 42c8a65a8f logDebug when then nio stage equals to the target 2020-10-28 16:21:09 +08:00
YuQing 719f8b2b32 task use reffer_count for share 2020-10-28 14:16:58 +08:00
YuQing 946bd8fe46 clear nio_stages.notify when task canceled 2020-10-27 08:56:31 +08:00
YuQing 99f80b847e sf_load_read_rule_config support default value 2020-10-25 20:40:14 +08:00
YuQing e0bba18a02 use atomic operation to avoid reentrance 2020-10-21 09:32:49 +08:00
YuQing 1854683ddd nio stage change to 2 fields: current and notify 2020-10-19 16:39:43 +08:00
YuQing 38df5d412c add AGPLv3 license and copyright 2020-10-14 10:33:41 +08:00
YuQing 6ccf936ee5 add function: sf_terminate_myself 2020-09-30 19:30:12 +08:00
YuQing 6cecfaa949 fixed printf format for port 2020-09-27 09:09:28 +08:00
YuQing 62a35f03d5 add macro sf_nio_notify_silence 2020-09-22 17:26:46 +08:00
YuQing 02b345deb9 set IOEVENT_READ | IOEVENT_WRITE events for connect status check 2020-09-14 15:14:25 +08:00
YuQing 17d3af8fd5 fixed sf_load_read_rule_config 2020-09-13 21:10:29 +08:00
YuQing a57d52be92 extern function: sf_task_detach_thread 2020-09-12 21:32:50 +08:00
YuQing ae72705785 add sf_configs.[hc] 2020-09-10 20:30:08 +08:00
YuQing b60912bfd6 task nio_stage use atomic opt. 2020-09-09 14:46:58 +08:00
YuQing 9bee7ad62b add SF_NIO_STAGE_HANDSHAKE after connect 2020-09-07 21:46:07 +08:00
YuQing aaeb421e6d support connect for client mode 2020-09-06 18:55:10 +08:00
YuQing 3b4aeff2d0 add realloc_task_buffer options 2020-03-16 13:09:11 +08:00
YuQing 115b1e7750 add function sf_enable_thread_notify_ex 2020-03-11 15:28:59 +08:00
YuQing 46dfd4ad01 bugfixed: task_cleanup_func 2020-03-10 21:11:30 +08:00