diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-30 15:18:15 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-30 15:18:15 -0700 |
commit | 39a1158197072f846301a8263e2851e892962e64 (patch) | |
tree | 4e46cb3eefc05827396db83dcf8a3007a32b883a /android/audio-test.h | |
parent | 7136b053b7fc7840ec64e01d1d19ab822e1f949a (diff) | |
download | external_qemu-39a1158197072f846301a8263e2851e892962e64.zip external_qemu-39a1158197072f846301a8263e2851e892962e64.tar.gz external_qemu-39a1158197072f846301a8263e2851e892962e64.tar.bz2 |
Fix adb client protocol
There are cases when 'accept' message that guest adbd sends via qemu pipe to the emulator
get broken into pieces: once 4 bytes are delivered, and then the remaining two. This breaks
the protocol, as emulator assumes that all 6 bytes would be delivered in one chunk. This CL
adjusts that by accumulating messages in a buffer, and analyzing them only when collected
message length reaches certain point.
Change-Id: Ice25625f65bbaa2b07677c3285bf75e7bf46fbb7
Diffstat (limited to 'android/audio-test.h')
0 files changed, 0 insertions, 0 deletions