[Lldb-commits] [lldb] [lldb] fix a bug in the "Socket::Read" method (PR #207426)

Matej Košík via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 20 09:02:18 PDT 2026


sedymrak wrote:

In the following method:

  ConnectionFileDescriptor::Read

(which is invoked also on Windows)
LLDB first waits until some bytes are available

  status = BytesAvailable(timeout, error_ptr);

and only then it tries to read them:

  error = m_io_sp->Read(dst, bytes_read);

So the situation where the `::recv` could fail with the `WSAEWOULDBLOCK`
error cannot happen.

That makes this pull-request pointless so I am closing it...

https://github.com/llvm/llvm-project/pull/207426


More information about the lldb-commits mailing list