[webkit-changes] [WebKit/WebKit] eaf0a2: Add fetch retries to improve networking robustness...
EWS
noreply at github.com
Thu Sep 8 21:18:14 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eaf0a297d03f1bca1d20fdae0517b820664fc6d6
https://github.com/WebKit/WebKit/commit/eaf0a297d03f1bca1d20fdae0517b820664fc6d6
Author: Mark Lam <mark.lam at apple.com>
Date: 2022-09-08 (Thu, 08 Sep 2022)
Changed paths:
M PerformanceTests/JetStream2/JetStreamDriver.js
M PerformanceTests/JetStream2/index.html
Log Message:
-----------
Add fetch retries to improve networking robustness for JetStream2.1.
https://bugs.webkit.org/show_bug.cgi?id=244937
<rdar://problem/99701290>
Reviewed by Alexey Shvaika.
If burst mode fetches fail, we'll switch to fetching the resources one at a time sequentially.
In burst mode and in the sequential refetch, fetch of each resource may be tried up to 3 times
before giving up. This improves robustness and help reduce the chance that JetStream 2.1 fails
to run due to poor network conditions.
Also remove the browser only code in fetchResources(). This is now handled by
prefetchResourcesForBrowser(), which handles retries more robustly.
* PerformanceTests/JetStream2/JetStreamDriver.js:
(prototype.async _loadInternal):
(Driver):
(Driver.prototype.async start):
(Driver.prototype.async initialize):
(Driver.prototype.async prefetchResourcesForBrowser):
(prototype.async run):
(prototype.async doLoadBlob):
(prototype.async loadBlob):
(prototype.updateCounter):
(prototype.prefetchResourcesForBrowser):
(prototype.async retryPrefetchResource):
(prototype.async retryPrefetchResourcesForBrowser):
(prototype.fetchResources):
(Driver.prototype.async preloadFilesForBrowser): Deleted.
(prototype.preloadFilesForBrowser): Deleted.
* PerformanceTests/JetStream2/index.html:
Canonical link: https://commits.webkit.org/254289@main
More information about the webkit-changes
mailing list