dawn-cmake/tools/src/cmd/remote-compile
Ben Clayton 5dac4f9644 tools/remote-compile: Handle socket disconnects
If the socket disconnected mid-communication, the server could spin, waiting for new data.

Actually handle recv() errors, preventing the server spinning itself to death.

Also fix code style to be more tint-like (snake_case variables, PascalCase functions)

Change-Id: I9fcbfde303a8624e7e1ff87abd33581589f4da42
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105142
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-10-10 15:16:23 +00:00
..
CMakeLists.txt tools: Link thread library for remote-compile 2021-07-30 21:16:46 +00:00
compile.h tools/remote-compile: clang-format 2022-10-10 12:17:03 +00:00
main.cc tools/remote-compile: Handle socket disconnects 2022-10-10 15:16:23 +00:00
msl_metal.mm tools/remote-compile: clang-format 2022-10-10 12:17:03 +00:00
rwmutex.h tools/remote-compile: Handle socket disconnects 2022-10-10 15:16:23 +00:00
socket.cc tools/remote-compile: Handle socket disconnects 2022-10-10 15:16:23 +00:00
socket.h tools/remote-compile: Handle socket disconnects 2022-10-10 15:16:23 +00:00