Repository navigation
Fix bug that leaves dangling connections - #548
Merged
Merged
Conversation
pimterry
force-pushed
the
fix-dangling-connections
branch
from
July 8, 2026 11:27
0114a5a to
c6c70a1
Compare
koral--
approved these changes
Jul 8, 2026
Member
|
LGTM, could you update your branch? I've just fixed the CI config, so build on semaphore should run w/o issues. |
Signed-off-by: Tim Perry <[email protected]>
pimterry
force-pushed
the
fix-dangling-connections
branch
from
July 8, 2026 12:59
c6c70a1 to
2dfcbb8
Compare
Author
|
@koral-- Updated, seems to be passing now. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some old ADB servers (before r28.0.1) do not clean up connections after errors. These are more common that you'd think, as it seems they're bundled with various emulators.
In practice, this means that ADB connections can be left open indefinitely, easily resulting in scenarios where large numbers of sockets are used e.g. when polling.
This PR ensure we always kill connections after errors or invalid data - in both cases, the connection is always unusable regardless and is never reused today anyway.