[Spice-devel] [PATCH 2/3] vdservice: retry virtio-serial read on ERROR_NO_SYSTEM_RESOURCES (1450)

Arnon Gilboa agilboa at redhat.com
Sun Sep 16 01:50:14 PDT 2012


as recommended by MS. seems like defined behavior of the driver.

rhbz#839564
---
 vdservice/virtio_vdi_port.cpp |    2 +-
 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) {
-- 
1.7.4.1



More information about the Spice-devel mailing list