Repository navigation
Feature: Improve dashboard ip api - #3741
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…widgets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
This pull request is merged. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…below the header (B1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fter the check (B5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etwork change (B3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… was enabled (B2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the check is disabled (M2, C4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… copy all (M1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st mapping) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r tools (M3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion limits (D1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etwork change during a check (CR1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (CR3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er the check was disabled (CR4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t (CR5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n (CR7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…thout a response (CR2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e start (F1) The widgets no longer start a check in their constructor: the dashboard starts it (CheckWidgets() at the start, a widget shown the first time marks the dashboard as outdated). Before, the dashboard's check right after creating the widget queued a recheck (CR1): two ip-api.com requests per widget at every start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ends no recheck (F2) A recheck queued during a check (e.g. a network change) only runs while the widget is shown. A hidden widget is checked when it is shown again (the setting marks the dashboard as outdated). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t a response (F3) When three requests in a row got no response but the server still answers a small request, the remaining requests of the set are skipped and the direction ends (before, each of them waited for the 15 s timeout, e.g. ~90 s for six 1 MB uploads through a proxy that silently drops them). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings > Dashboard has one section per widget in the order of the dashboard (Network connection, Speed Test, IP geolocation, DNS resolver), each with "Show widget" and the settings of its check. Showing a widget and enabling its check stay separate (a new installation shows the IP API widgets with the Enable button): "Check IP geolocation" / "Check DNS resolver" are disabled while their widget is hidden (the value is kept). A note shows that the network connection settings are also used by the status window, the help of the public IPv4 / IPv6 address says it is not the address of the computer. Docs: Settings section grouped the same way (existing anchors kept). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…jected (R1) A proxy that answers every request with an HTTP error (e.g. 403) no longer gives a "successful" test with -/- values, a test time and the "requests were skipped" warning: without any latency, download or upload sample the error of the last request is thrown (shown with the HTTP status code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ries (R2) A request that is still answered with HTTP 429 after its three retries ends the test with the error. Before, it was skipped and every following request was rate limited and retried too (up to 60 s per retry, no failure counted): the test could run for hours showing "Measuring latency...". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The counter of requests in a row without a response starts again with every download / upload set. Before, two failed latency probes (e.g. a short Wi-Fi drop) and one failed request of the next size reached the limit; if the server then answered the small request, the direction ended (F3) and all larger sizes were skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 429 (R6) The answer to HTTP 429 uses the time left incl. the margin of one second like the following requests, so "Try again in 61 seconds" is followed by 60, 59, ... instead of 60 and then 61. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ore the last set (P1) R3 reset the failures in a row at the start of every set, so a connection lost during the last latency probes was no longer detected in the last set (2 x 250 MB never reaches 3 failures): the test ended with a result and a warning instead of the error. The failures in a row across the sets end the test again; a separate counter of the set decides that a size fails, so failed latency probes before a set still only skip one request (R3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a new connection per check (P2) The HttpClients of ip-api.com (IP geolocation, DNS resolver) and of the public IP address API send "Connection: close". A check right after a network change (e.g. a full-tunnel VPN connected within a minute of the last check) no longer reuses a pooled keep-alive connection of the old network, which could return the old public IP address and location. The speed test keeps its pooled connections (one test, many requests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…om (P3) The answer to HTTP 429 reads the time until the window resets (X-Ttl) if it is there, 60 seconds only without it. Before, a 429 a few seconds before the reset (e.g. another device used up the 45 requests) blocked the IP Geolocation tool, the traceroute and the widget for a whole minute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in the set (Q1) After failed latency probes before a set, the check of the server reset the failures in a row, so a size that fails waited for three more timeouts before it was skipped (one extra timeout of 15 s, a set of 3 was never detected). The set's own counter now also starts the check (download / upload only, the latency probes still end the test after three failures in a row). Docs describe when a size is skipped (P1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Rl (Q2) A 429 right before the window resets (X-Ttl: 0) blocks for one second instead of a minute, and X-Ttl is used even if X-Rl is missing (P3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…29 (P2, P3, Q2) Entries for the Dashboard and the status window (new connection per check after a network change) and for IP Geolocation and Traceroute (time left of ip-api.com after HTTP 429). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
See commits
Related issue
#3609
Type of change