Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer attempts to start ADB server until we actually fail to connect #833

Merged
merged 3 commits into from
Jan 5, 2017

Conversation

zachriggle
Copy link
Member

The adb.protocol code attempts to be kind and start the ADB server if the user had not already done so (e.g. on a freshly-booted machine).

However, it attempts to do this on every connection. Because of the way that ADB works, this shouldn't actually cause any issues, since the new server process will just fail to bind the port and exit silently.

This adds a bit of overhead (lots of spawned processes) and takes up time in tight loops.

Defer attempting to kick-start the ADB server until we actually fail a connection attempt.

@zachriggle zachriggle added this to the 3.3.0 milestone Jan 5, 2017
@zachriggle zachriggle self-assigned this Jan 5, 2017
@zachriggle
Copy link
Member Author

Verified that this did actually run all of the Android tests

@zachriggle
Copy link
Member Author

Merging to stable since this is a low-impact bug. There's no functional problem that this solves, but it does fix performance.

@zachriggle zachriggle merged commit 54e7228 into Gallopsled:stable Jan 5, 2017
@zachriggle zachriggle deleted the adb-too-many-cooks branch February 16, 2017 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants