From ddc528d69d339ab307093fc6f41d9677c73275a9 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Sun, 2 Nov 2025 15:02:54 +0800 Subject: [PATCH] restore function sf_client_sock_in_read_stage --- src/sf_nio.c | 5 +++++ src/sf_nio.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/sf_nio.c b/src/sf_nio.c index e413a14..0f09eb2 100644 --- a/src/sf_nio.c +++ b/src/sf_nio.c @@ -1429,3 +1429,8 @@ static int sf_client_sock_write(int sock, const int event, void *arg) return total_write; } + +bool sf_client_sock_in_read_stage(struct fast_task_info *task) +{ + return (task->event.callback == (IOEventCallback)sf_client_sock_read); +} diff --git a/src/sf_nio.h b/src/sf_nio.h index 03e756d..48f8d79 100644 --- a/src/sf_nio.h +++ b/src/sf_nio.h @@ -158,6 +158,8 @@ static inline void sf_nio_add_to_deleted_list(struct nio_thread_data } } +bool sf_client_sock_in_read_stage(struct fast_task_info *task); + #ifdef __cplusplus } #endif