Batch pdu read in function iscsi_read_from_socket()
iscsi_read_from_socket can currently only read one PDU in each iscsi_service invocation even if there is more data available on the socket. This patch reads all PDUs until the socket would block. It enqueues all complete read PDUs and then processes them in order of arrival. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -119,6 +119,7 @@ struct iscsi_context {
|
||||
int tcp_keepintvl;
|
||||
int tcp_keepidle;
|
||||
int tcp_syncnt;
|
||||
int tcp_nonblocking;
|
||||
|
||||
int current_phase;
|
||||
int next_phase;
|
||||
|
||||
Reference in New Issue
Block a user