commit | 39a1158197072f846301a8263e2851e892962e64 | [log] [tgz] |
---|---|---|
author | Vladimir Chtchetkine <vchtchetkine@google.com> | Mon Apr 30 15:18:15 2012 -0700 |
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | Mon Apr 30 15:18:15 2012 -0700 |
tree | 4e46cb3eefc05827396db83dcf8a3007a32b883a | |
parent | 7136b053b7fc7840ec64e01d1d19ab822e1f949a [diff] |
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