From 9f832c148fdd3d9d3e4673e89d2d052c2bcd1efa Mon Sep 17 00:00:00 2001 From: Lena Date: Wed, 1 Jul 2026 00:00:00 +0000 Subject: treewide: correct stale comments - MuxRecorder claimed minSdk 35; it is 31. - Adb claimed API 34 is the current Android max, next to compileSdk 35. - Server claimed the openAbstract budget is wall-clock bounded below the e2e deadline; the deadline is per stream, so the worst case is not. Describe what actually holds instead. - Pixhash contradicted itself about java.desktop availability. --- app/src/main/java/invalid/lena/scrcpy/Server.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/src/main/java/invalid/lena/scrcpy/Server.java') diff --git a/app/src/main/java/invalid/lena/scrcpy/Server.java b/app/src/main/java/invalid/lena/scrcpy/Server.java index cc16b44..6ae752f 100644 --- a/app/src/main/java/invalid/lena/scrcpy/Server.java +++ b/app/src/main/java/invalid/lena/scrcpy/Server.java @@ -40,11 +40,10 @@ public final class Server { private static final int FILE_MODE = 0100644; // regular file, 0644 // Server forks a CleanUp helper before opening its abstract sockets; // on slow emulators that takes several seconds, so the budget needs - // to be generous. Wall-clock bounded: even if every attempt wedges - // for the full OPEN_ATTEMPT_TIMEOUT_MS, the total stays near - // OPEN_DEADLINE_MS - strictly below the e2e test deadline - // (test-rig/e2e.sh's E2E_DEADLINE, default 60 s), or the test - // would fail the wrong way. + // to be generous. The deadline is per stream: in practice only the + // first open waits (the server is still starting) and the other two + // dial instantly, so a healthy bring-up stays well below the e2e + // test deadline (test-rig/e2e.sh's E2E_DEADLINE, default 60 s). private static final long OPEN_DEADLINE_MS = 20_000; private static final int OPEN_BACKOFF_MS = 100; // Per-attempt timeout for adb.openAbstract. libadb-android's -- cgit v1.2.3