Commit b05877c7 authored by Ryan Haining's avatar Ryan Haining
Browse files

Host socket_forward_proxy waits for guest

If a host-side process connects then disconnects before the guest-side
process sees it: the host-side sfp queue will be marked as
HOST_DISCONNECTED so the guest-side sfp will never see acquire it. The
host-side sfp thread will wait forever for the host to send an END
marker through the shm region.

host-side sfp instead waits for the guest to connect before marking its
side as disconnected.

This sort of thing will happen when running adb connect repeatedly.

Bug: 79702418
Test: boot locally, run adb connect repeatedly, quickly, watch the
connections work themselves out.

Change-Id: I3e86bd848c1770075515efd79f88d477e478563b
parent f3c0cb62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment