discovery.c: drop discovery requests on reconnect instead or re-queuing them
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ iscsi_discovery_async(struct iscsi_context *iscsi, iscsi_command_cb cb,
|
|||||||
pdu = iscsi_allocate_pdu(iscsi, ISCSI_PDU_TEXT_REQUEST,
|
pdu = iscsi_allocate_pdu(iscsi, ISCSI_PDU_TEXT_REQUEST,
|
||||||
ISCSI_PDU_TEXT_RESPONSE,
|
ISCSI_PDU_TEXT_RESPONSE,
|
||||||
iscsi_itt_post_increment(iscsi),
|
iscsi_itt_post_increment(iscsi),
|
||||||
0);
|
ISCSI_PDU_DROP_ON_RECONNECT);
|
||||||
if (pdu == NULL) {
|
if (pdu == NULL) {
|
||||||
iscsi_set_error(iscsi, "Out-of-memory: Failed to allocate "
|
iscsi_set_error(iscsi, "Out-of-memory: Failed to allocate "
|
||||||
"text pdu.");
|
"text pdu.");
|
||||||
|
|||||||
Reference in New Issue
Block a user