[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
Fri Jul 3 09:41:06 PDT 2026


sedymrak wrote:

[socket.zip](https://github.com/user-attachments/files/29642798/socket.zip)
This project shows that what is described in Win32 API documentation can happen in real life.
The `::recv` call in the TCP client can fail (i.e. return value `-1`) when the buffer is (accidentally) empty.
The binaries can be built on Windows as follows:
```
cmake -S . -B build
cmake --build build
```
Then they can be run (e.g. in `cmd.exe` as:
```
build\Debug\server.exe
```
in one `cmd.exe` terminal and:
```
build\Debug\client.exe
```
in the other `cmd.exe` terminal.

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


More information about the lldb-commits mailing list