Skip to content

feat: report which address each ping test used under --debug - #128

Merged
maddie merged 1 commit into
librespeed:masterfrom
BKPepe:feat/report-resolved-address
Aug 11, 2026
Merged

feat: report which address each ping test used under --debug#128
maddie merged 1 commit into
librespeed:masterfrom
BKPepe:feat/report-resolved-address

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

IPv4 and IPv6 can take different paths through the network, so a result is
not fully described by the hostname it was measured against. Nothing in the
output says which was used — --json carries no client address, and the
human-readable line only shows it by accident, inside the ISP string.

It is not academic. Against speedtest.cesnet.cz, in the same run:

Pinging 78.128.211.42 over ICMP (IPv4)
Pinging [2001:718:1:1f:50:56ff:feee:42]:443 over TCP (IPv6)

The ICMP ping resolves separately from the HTTP client, so the reported
latency and the reported throughput can describe two different paths.

The ICMP path reports the address the pinger resolved and probed; the TCP
path reports the peer the socket actually connected to, taken from
httptrace. Both are covered because --no-icmp is common enough that
doing only the ICMP one would leave most users with nothing.

Copilot AI lite review requested due to automatic review settings August 9, 2026 23:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@BKPepe
BKPepe force-pushed the feat/report-resolved-address branch 2 times, most recently from c856da5 to 8eab70a Compare August 11, 2026 08:33
IPv4 and IPv6 can take different paths through the network, so a result is
not fully described by the hostname it was measured against. Nothing in the
output says which was used: --json carries no client address, and the
human-readable line only shows it by accident, in the ISP string.

It is not academic. Against speedtest.cesnet.cz the ICMP ping goes over
IPv4 while the transfers go over IPv6, so the reported latency and the
reported throughput describe two different paths.

The ICMP path reports the address the pinger resolved and probed; the TCP
path reports every distinct peer the sockets connected to, taken from
httptrace. The requests usually share one connection, but a reconnect can
land on a different address, and reporting only the first would describe a
connection the later samples did not use.

Both paths are covered because --no-icmp is common enough that doing only
the ICMP one would leave most users with nothing.
@BKPepe
BKPepe force-pushed the feat/report-resolved-address branch from 8eab70a to 04a16c9 Compare August 11, 2026 08:45
@maddie
maddie merged commit 8b464d5 into librespeed:master Aug 11, 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.

3 participants