Bug 244937

Summary: Add fetch retries to improve networking robustness for JetStream2.1.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Mark Lam 2022-09-08 09:20:10 PDT
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 tries 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.
Comment 1 Radar WebKit Bug Importer 2022-09-08 09:20:33 PDT
<rdar://problem/99701290>
Comment 2 Mark Lam 2022-09-08 09:28:11 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4134
Comment 3 EWS 2022-09-08 21:18:04 PDT
Committed 254289@main (eaf0a297d03f): <https://commits.webkit.org/254289@main>

Reviewed commits have been landed. Closing PR #4134 and removing active labels.