From e940f957693dc285710492f992181525fd6bc0c8 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Fri, 13 Jun 2014 13:10:18 +0200 Subject: [PATCH] logout: cork socket after logout has been sent Signed-off-by: Peter Lieven --- lib/login.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/login.c b/lib/login.c index 32c3c8c..492df3b 100644 --- a/lib/login.c +++ b/lib/login.c @@ -1154,6 +1154,7 @@ iscsi_logout_async(struct iscsi_context *iscsi, iscsi_command_cb cb, pdu->callback = cb; pdu->private_data = private_data; + pdu->flags |= ISCSI_PDU_CORK_WHEN_SENT; if (iscsi_queue_pdu(iscsi, pdu) != 0) { iscsi_set_error(iscsi, "Out-of-memory: failed to queue iscsi "