You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix a pinned server dragging its stand-ins to the wrong city
Pinning your own provider's server and switching on Best of 3 fetched the
two extra servers from your own city instead of from beside the pin. On a
link whose address registers in one city while the connection actually
leaves through another, that put the stand-ins hundreds of kilometres
away, and one of them usually won the round and got recorded in the pin's
place.
Ookla is asked where a server is by its id, and that answer quietly hands
back the caller's own position whenever the server asked about belongs to
the caller's provider - which is the usual reason anyone pins one. The
answer carries a distance alongside it, and for that substituted reply the
distance is exactly zero: a server claiming to sit where you are standing.
Servers genuinely a few kilometres away report those few kilometres, so
the zero is the tell.
On a zero, the server is looked up a second way, by its provider's name,
which the same reply reports correctly. That returns its real position and
the stand-ins come from beside it. If the second lookup finds nothing, the
untrustworthy position is dropped rather than used, and the run falls back
to timing candidate cities and centring on the fastest - already what
happens for a pin Ookla gives no position for at all. That case is logged
and counted, because it changes which server the run ends up recording.
A trustworthy answer costs nothing extra: the check reads a number already
sitting on the reply, and no second lookup is made.
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments