Skip to content

Reduce Chromium restart time#315

Merged
chruffins merged 1 commit into
mainfrom
1525
Jul 13, 2026
Merged

Reduce Chromium restart time#315
chruffins merged 1 commit into
mainfrom
1525

Conversation

@chruffins

Copy link
Copy Markdown
Contributor

Summary

(See KERNEL-1525)

Root cause: waitForPort in chromium-launcher probed port 9223 with SO_REUSEADDR disabled. After CDP health checks, TIME_WAIT sockets are always present on that port. The probe failed for the full 5s timeout, then Chromium bound immediately anyway (since it uses SO_REUSEADDR).

Fix: Use Go's default net.Listen, which sets SO_REUSEADDR and matches Chromium's apparent DevTools bind behavior. The probe still waits if an active LISTEN from the old process is lingering after SIGKILL, but no longer blocks on harmless TIME_WAIT sockets from prior CDP connections.

@chruffins chruffins requested a review from hiroTamada July 13, 2026 18:00
@chruffins chruffins merged commit a1fbb83 into main Jul 13, 2026
10 checks passed
@chruffins chruffins deleted the 1525 branch July 13, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants