Skip to content

Report MTU scan progress while the scan runs - #3

Closed
TaJirax wants to merge 1 commit into
mainfrom
mtu-scan-progress
Closed

Report MTU scan progress while the scan runs#3
TaJirax wants to merge 1 commit into
mainfrom
mtu-scan-progress

Conversation

@TaJirax

@TaJirax TaJirax commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • adds logMTUProgress, which reports completed, total, valid, and rejected as WD_PROGRESS phase=mtu across the 10-80 percent band
  • throttles the output to one line per percent step, never dropping the first or last line of a scan
  • calls it from a single defer in runConnectionMTUTest, registered ahead of the panic recovery so every exit path reports after the counters have been updated

Why

The MTU scan is the longest phase of a connect, and it emitted no WD_PROGRESS at all. A client watching the machine output saw the bar sit at the starting percent and then jump to selecting when the scan finished, with no resolver counts in between. The WhiteDNS desktop app draws its connection progress bar and its scan resolver counts from exactly these fields, so both were frozen for the whole scan.

Validation

  • new tests cover emission at LOG_LEVEL=WARN, where the human-readable per-resolver lines are suppressed, and the throttle behaviour including the final line
  • go build ./..., go vet ./..., and go test ./... pass

🤖 Generated with Claude Code

The MTU scan is the longest phase of a connect but emitted no WD_PROGRESS,
so a client watching the machine output saw the bar sit at the starting
percent and then jump to selecting, with no resolver counts in between.

logMTUProgress reports completed, total, valid and rejected across the 10-80
percent band, throttled to one line per percent step. It is deferred from
runConnectionMTUTest ahead of the panic recovery, so every exit path reports
after the counters have been updated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@TaJirax

TaJirax commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #4, which merged this commit as part of the full engine sync. The MTU scan progress reporting is on main.

@TaJirax TaJirax closed this Aug 3, 2026
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.

1 participant