sf_nio.c: check_task adapt to RDMA
parent
435ae6bb84
commit
0eb842dc09
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue