RECONNCT fix broken reconnect for iov out vectors
We where modifying out_offset and out_len in iscsi_write_to_socket(). If the packet that was being sent before reconnect was a write command the was a significant change that out_offset and out_len where already touched. When requeing the packet after reconnect we where sending garbage! Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -218,7 +218,8 @@ struct iscsi_pdu {
|
||||
|
||||
struct iscsi_data outdata; /* Header for PDU to send */
|
||||
uint32_t out_offset; /* Offset into data-out iovector */
|
||||
uint32_t out_len; /* Amount of data to sent */
|
||||
uint32_t out_len; /* Amount of data to sent starting at out_offset */
|
||||
uint32_t out_written; /* Number of bytes written to socket */
|
||||
|
||||
struct iscsi_data indata;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user