sf_nio.c: check_task adapt to RDMA

support_rdma
YuQing 2023-09-14 09:50:49 +08:00
parent 435ae6bb84
commit 0eb842dc09
1 changed files with 12 additions and 8 deletions

View File

@ -495,6 +495,7 @@ static inline int check_task(struct fast_task_info *task,
return 0;
}
if (task->handler->comm_type == fc_comm_type_sock) {
if (tcp_socket_connected(task->event.fd)) {
return EAGAIN;
} else {
@ -505,6 +506,9 @@ static inline int check_task(struct fast_task_info *task,
ioevent_add_to_deleted_list(task);
return -1;
}
} else {
return EAGAIN;
}
}
ssize_t sf_socket_send_data(struct fast_task_info *task, SFCommAction *action)