platform_system_core/base
Spencer Low 142ec75cf8 adb: win32: fix adb emu command
The adb emu command was never working because the socket connection to
the emulator was closed without reading all of the data that the
emulator sent. On Windows, this caused the emulator's recv() call to
error-out, so it never got the command that was sent.

Before settling on this fix, I also experimented changing the arguments
to the socket shutdown() call and that didn't seem to help. I also tried
removing the call to shutdown() and that didn't help. So that should
rule out shutdown() as the problem. One experiment that helped was
delaying before calling adb_close(), but that is of course fragile and
doesn't address the real issue, which is not closing the socket until
the commands have been read.

https://code.google.com/p/android/issues/detail?id=21021

Change-Id: I8fa4d740a2faa2c9922ec50792e16564a94f6eed
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-05-06 18:54:08 -07:00
..
include/base adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
.clang-format Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
Android.mk Support base::logging on Windows. 2015-04-29 18:01:53 -07:00
CPPLINT.cfg Don't show lint errors for rvalue references. 2015-04-02 18:38:01 -07:00
file.cpp Add ReadFully and WriteFully to libbase. 2015-04-24 21:57:16 -07:00
file_test.cpp Fix comparison between signed and unsigned error on darwin 2015-04-30 16:58:26 -07:00
logging.cpp Add additional shielding against the ERROR macro. 2015-05-04 16:40:38 -07:00
logging_test.cpp Support base::logging on Windows. 2015-04-29 18:01:53 -07:00
stringprintf.cpp Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
stringprintf_test.cpp Get libbase tests working on Windows. 2015-04-29 17:11:28 -07:00
strings.cpp Remove strtok from adb. 2015-04-27 19:42:20 -07:00
strings_test.cpp Remove strtok from adb. 2015-04-27 19:42:20 -07:00
test_main.cpp Support base::logging on Windows. 2015-04-29 18:01:53 -07:00
test_utils.cpp Get libbase tests working on Windows. 2015-04-29 17:11:28 -07:00
test_utils.h Add google3 style logging to libbase. 2015-03-20 14:04:35 -07:00