aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/drivers/camera.cpp
diff options
context:
space:
mode:
authorcirakg <cirakg@cirakg.xyz>2026-11-03 00:28:31 +0100
committercirakg <cirakg@cirakg.xyz>2026-11-03 00:28:31 +0100
commitaf75958b0ed9a0e44a8c21afa768a63541d8b223 (patch)
tree21e6e9d66f9c6f5a73abc3de5b6bb0bc58712f2c /src/input_common/drivers/camera.cpp
parentfd3e2fe18a101e2bbfd5935263183e25ab26497b (diff)
network: use the socket type for room stream reads and wake all readers
socket(AF_INET, SOCK_STREAM, 0) leaves the protocol unspecified, so the TCP checks in ProxySocket::Recv and ReceivePacket missed such sockets. recv() then waited for the timeout and returned EAGAIN instead of end of stream, and partial reads dropped the rest of the packet. Keep the socket type and use it for these checks. The protocol stays as it is, because it is sent to other room members. A MSG_PEEK reader leaves the packet queued, so notify every waiter when a packet arrives instead of only one. Assisted-by: Claude Opus 5.5 (investigation and implementation)
Diffstat (limited to 'src/input_common/drivers/camera.cpp')
0 files changed, 0 insertions, 0 deletions