summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/utils.cpp
diff options
context:
space:
mode:
author Alex Vakulenko <avakulenko@google.com> 2017-04-17 12:02:38 -0700
committer Alex Vakulenko <avakulenko@google.com> 2017-04-19 09:55:49 -0700
commitd618b567630d347be0929ea25ce6c68921005ed6 (patch)
tree23b68431d619727647323037ab5a6c6e88e4b18d /cmds/dumpstate/utils.cpp
parent5330710aebfed15005ae39ba5896b615e138bf38 (diff)
libpdx_uds: Fix send/receive over socket to handle signal interrupts
Previous implementation of send/receive didn't account for the fact that send/receive operation might be interrupted by a signal and transfer fewer bytes than requested. Fix this by repeatedly calling send/recv until all the requested data is transferred over sockets. Also added a number of unit tests for send/receive functions. Bug: 37427314 Test: `m -j32` succeeds for Sailfish. `libpdx_uds_tests` pass on device Change-Id: Ib8f78967af3c218d9f18fb3dfe8953c35800540b
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
0 files changed, 0 insertions, 0 deletions