fix(desktop): prevent a second server from breaking active threads #10360
Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromt3code/fix-broken-threadopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
juliusmarminge added labelsmacroscope-review
- @@ -79,18 +80,6 @@7980 }80818182 const net = yield* NetService.NetService;82- for (let port = DEFAULT_DESKTOP_BACKEND_PORT; port <= MAX_TCP_PORT; port += 1) {83- let availableOnEveryHost = true;84-85- for (const host of DESKTOP_BACKEND_PORT_PROBE_HOSTS) {86- if (!(yield* net.canListenOnHost(port, host))) {87- availableOnEveryHost = false;88- break;89- }90- }91-92- if (availableOnEveryHost) {93- return {94- port,95- selectedByScan: true,96- } as const;83+ const unavailableHosts: string[] = [];84+ for (const host of DESKTOP_BACKEND_PORT_PROBE_HOSTS) {85+ if (!(yield* net.canListenOnHost(DEFAULT_DESKTOP_BACKEND_PORT, host))) {
maria-rcks closed this
maria-rcks reopened this
juliusmarminge closed this
Sign in to join this conversation.
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — The PR changes the packaged desktop default startup policy from selecting a fallback port to refusing startup when 3773 is occupied. Its host preflight can also reject a usable IPv4 bind because of an IPv6-only listener, so human review is warranted.
Not approved because:
- 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).