diff options
| author | Eric Blake | 2016-05-12 00:39:36 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-06-16 18:39:05 +0200 |
| commit | 63d5ef869e5e57de4875cd64b6f197cbb5763adf (patch) | |
| tree | 8525f172624d6526fe0666616dc68aeecb3e82f1 /scripts/switch-timer-api | |
| parent | nbd: More debug typo fixes, use correct formats (diff) | |
| download | qemu-63d5ef869e5e57de4875cd64b6f197cbb5763adf.tar.gz qemu-63d5ef869e5e57de4875cd64b6f197cbb5763adf.tar.xz qemu-63d5ef869e5e57de4875cd64b6f197cbb5763adf.zip | |
nbd: Quit server after any write error
We should never ignore failure from nbd_negotiate_send_rep(); if
we are unable to write to the client, then it is not worth trying
to continue the negotiation. Fortunately, the problem is not
too severe - chances are that the errors being ignored here (mainly
inability to write the reply to the client) are indications of
a closed connection or something similar, which will also affect
the next attempt to interact with the client and eventually reach
a point where the errors are detected to end the loop.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1463006384-7734-4-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
