0ad/source/dapinterface
trompetin17 b2fc1d6943
DapInterface: shutdown sockets on Unix
FreeBSD could hang indefinitely when the debug-adapter process
terminated because we closed the TCP socket without first calling
`shutdown()`.  On that platform (and similarly on Linux and macOS)
a peer that is still blocked in `recv` will not be woken up unless
a full‐duplex shutdown is performed.

This patch adds `shutdown(fd, SHUT_RDWR)` in `DapInterface.cpp`
for Linux, *BSD, and macOS builds, preventing the observed hang.
2025-07-14 13:53:17 -05:00
..
tests Add missing includes for fmt and CLogger in test_DapInterface.h 2025-07-13 07:27:56 -05:00
DapInterface.cpp DapInterface: shutdown sockets on Unix 2025-07-14 13:53:17 -05:00
DapInterface.h