socket.c: allow re-using a context after disconnect
From Adam Endrodi <adam.endrodi@nsn.com> Fix a bug and clear is_corked during socket disconnect so that we can re-use the context for a new connection. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -368,6 +368,7 @@ iscsi_disconnect(struct iscsi_context *iscsi)
|
|||||||
|
|
||||||
iscsi->fd = -1;
|
iscsi->fd = -1;
|
||||||
iscsi->is_connected = 0;
|
iscsi->is_connected = 0;
|
||||||
|
iscsi->is_corked = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user