================
@@ -176,9 +176,17 @@ size_t ConnectionGenericFile::Read(void *dst, size_t 
dst_len,
     goto finish;
   }
 
+  if (m_read_pending) {
+    if (::GetOverlappedResult(m_file, &m_overlapped, &bytes_read, FALSE)) {
+      m_read_pending = false;
+      return bytes_read;
+    }
+  }
+
   m_overlapped.hEvent = m_event_handles[kBytesAvailableEvent];
 
   result = ::ReadFile(m_file, dst, dst_len, NULL, &m_overlapped);
+  m_read_pending = true;
----------------
Nerixyz wrote:

Do we always need to set this or is it only needed after we returned 
`eConnectionStatusInterrupted`?

https://github.com/llvm/llvm-project/pull/182536
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to