]> git.proxmox.com Git - mirror_qemu.git/commit
nbd/server: Ignore write errors when replying to NBD_OPT_ABORT
authorEric Blake <eblake@redhat.com>
Sat, 17 Nov 2018 22:32:21 +0000 (16:32 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 19 Nov 2018 17:16:46 +0000 (11:16 -0600)
commit3e99ebb9d3df15ce0ecf1b435816c9c46ee9a1ad
tree24d530b69e1ce880d55514f9769a68edd0aff767
parent0b0bb124bb797b2fc3389ffa1e933fc34fe6dacb
nbd/server: Ignore write errors when replying to NBD_OPT_ABORT

Commit 37ec36f6 intentionally ignores errors when trying to reply
to an NBD_OPT_ABORT request for plaintext clients, but did not make
the same change for a TLS server.  Since NBD_OPT_ABORT is
documented as being a potential for an EPIPE when the client hangs
up without waiting for our reply, we don't need to pollute the
server's output with that failure.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20181117223221.2198751-1-eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
nbd/server.c