Repository navigation
perf: Decrease hub network latency even further #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b5b738a
perf: keep the WiFi radio awake while the hub is in use
hhvrc 6b86a2c
perf: pick up RF commands between frames instead of between rounds
hhvrc f42d283
perf: read read-only littlefs mounts through a flash mapping
hhvrc 29996dd
chore: log where flashing a partition from a URL spends its time
hhvrc 3ee53bb
perf: raise the TCP receive window to 16 KB
hhvrc 356b441
Merge remote-tracking branch 'origin/develop' into perf/hub-latency
hhvrc 259bbe1
refactor: make the WiFi power save idle timeout a Kconfig option
hhvrc a21883b
perf: resume TLS sessions when reconnecting to the gateway and HTTP h…
hhvrc bd7b501
perf: raise the HTTP client and gateway websocket buffers
hhvrc 5dba821
perf: back off gateway reconnects from 2 s instead of a flat 20 s
hhvrc 2551e16
perf: raise the TCP send buffer to 16 KB to match the receive window
hhvrc d3382f3
perf: turn off Nagle on captive portal sockets
hhvrc 4a32ab2
perf: reuse one receive buffer for portal websocket frames
hhvrc 0a8f4da
fix: keep the power-save idle option in core's Kconfig scope, add the…
hhvrc 34e23c2
fix(gateway): only reset the connect backoff after time spent connected
hhvrc 0049ed0
fix(http): keep bracketed IPv6 hosts whole, clear retry state per att…
hhvrc 875b3fa
chore(ota): count the first progress callback as progress time
hhvrc dfc3f2d
test(device_control): cover refused sends and failed activity posts
hhvrc d24202e
chore(changes): add change file for hub latency
hhvrc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| kind: changed | ||
| --- | ||
| Cut network latency between the hub, the gateway and the setup portal | ||
|
|
||
| ## Release Note | ||
| Faster response to commands | ||
|
|
||
| Commands from the app reach your shockers sooner. While you are using the hub its WiFi radio stays awake instead of waiting for the access point's next beacon, reconnections are quicker, and the connection buffers are larger. | ||
|
|
||
| - WiFi power save is switched off on the first command and back on after an idle period (`CONFIG_OPENSHOCK_WIFI_POWERSAVE_IDLE_MS`, default 1 hour) | ||
| - RF commands are picked up between frames instead of between rounds | ||
| - TLS sessions are resumed when reconnecting to the gateway and HTTP hosts | ||
| - Gateway reconnects back off from 2 s instead of a flat 20 s | ||
| - Larger HTTP client, gateway websocket and TCP send/receive buffers (16 KB window); Nagle is off on portal sockets | ||
| - Read-only littlefs mounts are read through a flash mapping |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.