summaryrefslogtreecommitdiff
path: root/vdservice
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2012-09-13 17:23:02 +0300
committerArnon Gilboa <agilboa@redhat.com>2012-09-13 17:23:02 +0300
commit1f56b3812fecf885280213aeb4bdedea7e42dd66 (patch)
tree790e7410fc1c7fd5b56d0eaad48941968eaf5760 /vdservice
parent18f70a3376a1e4a8c0d0a164a21b0be97f4c355a (diff)
vdservice: retry virtio-serial read on ERROR_NO_SYSTEM_RESOURCES (1450)
as recommended by MS. seems like defined behavior of the driver. rhbz#839564
Diffstat (limited to 'vdservice')
-rw-r--r--vdservice/virtio_vdi_port.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdservice/virtio_vdi_port.cpp b/vdservice/virtio_vdi_port.cpp
index 31a3862..92eb129 100644
--- a/vdservice/virtio_vdi_port.cpp
+++ b/vdservice/virtio_vdi_port.cpp
@@ -167,7 +167,7 @@ void VirtioVDIPort::read_completion()
if (!GetOverlappedResult(_handle, &_read.overlap, &bytes, FALSE)) {
DWORD err = GetLastError();
- if (err == ERROR_OPERATION_ABORTED) {
+ if (err == ERROR_OPERATION_ABORTED || err == ERROR_NO_SYSTEM_RESOURCES) {
_read.pending = false;
return;
} else if (err != ERROR_MORE_DATA) {