Repository navigation
Conversation
A host that drops packets, or a wss:// connect to a plain ws server, left LiveUpdateSocket waiting forever, so the inspector stayed on Connecting. It now gives up after openTimeoutMs (default 5 s), as AppListSocket does, and reports unreachable, or notRegistered when the socket opened.
The idle liveness ping used the 60 s command timeout and ignored failures, so a silent app made the next real command wait up to a minute behind it. Pings now time out after heartbeatTimeoutMs (default 5 s), are skipped while the app is paused, and three misses in a row close the socket as unresponsive.
The app cycles through stacked hits at a point, so a retry after a late reply, or two clicks collapsed into one, selected the wrong object. hightlightObjectFromCoordinatesScreenshot is now sent as an input command in both the protocol client and the binding.
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.
Three findings left over from the web inspector's code review on 7 Nov. Each one is its own commit.
Live view that never opens (
LiveUpdateSocket)A host that drops packets, or a
wss://connect to a plainwsserver, left the socket waiting forever, so the inspector showed "Connecting" with no error. It now gives up afteropenTimeoutMs(default 5 s), the same optionAppListSocketalready has. It reportsunreachableif the socket never opened, ornotRegisteredif it opened but the server never sentdriverRegistered.Heartbeat holding the command slot (
AltSocket)The idle
getServerVersionping used the 60 s command timeout and ignored failures. Since only one command runs at a time, a silent app made the next real command (a tap, a selection) wait up to a minute behind the ping.heartbeatTimeoutMs: default 5 s, never longer thanheartbeatMs.unresponsiveand the newappStoppedAnswering()message. Any ping that gets a reply resets the count.Select-from-screen retries (
hightlightObjectFromCoordinatesScreenshot)The app remembers earlier hits at a point and returns the next stacked object on each call. As a retried read, a late first reply plus a retry skipped an object. Two quick clicks at one point were also collapsed into one call. The command is now sent as
input(never retried, never collapsed) in both the protocol client and the binding.Checked
npm test: 179 passed (9 new tests).npm run typecheckandnpm run buildare clean.After merge
The web inspector pins
v0.2.1. To pick these fixes up it needs a new tag (for examplev0.2.2) and a lockfile repin inalttester-web. The version inpackage.jsonis left unchanged here.