Commit Graph

73 Commits (78d65ba2c6accab977ade12b7c96766e01af1ce8)

Author SHA1 Message Date
YuQing 78d65ba2c6 net buffer config for each sf_context instance 2024-02-20 09:53:52 +08:00
YuQing cf9088fb0c use task->pending_send_count to prevent re-entry 2023-11-06 10:54:50 +08:00
YuQing a8867a19c4 sf_send_data_callback and sf_send_done_callback changed 2023-10-26 10:48:22 +08:00
YuQing 89a451b8ce call set_read_event in func sf_nio_deal_task 2023-10-25 10:02:47 +08:00
YuQing db00a7add8 set task recv offset and length correctly 2023-10-24 21:22:56 +08:00
YuQing 7f6e7b12b4 remove useless variable: length 2023-09-29 15:01:23 +08:00
YuQing 71e7066c81 invoke send done callback correctly 2023-09-29 14:59:58 +08:00
YuQing 5f5db2b998 support explicit post recv for RDMA 2023-09-28 22:20:52 +08:00
YuQing 17c99cdd55 sf_nio_task_is_idle rename to sf_nio_task_send_done 2023-09-26 15:26:42 +08:00
YuQing f8e3fcdc55 adapt to the newest struct fast_task_info from libfastcommon 2023-09-25 18:37:53 +08:00
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