[Webkit-unassigned] [Bug 215631] New: Webkit incorrectly reuses closed tcp connections: Failed to load resource: The network connection was lost.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 18 16:47:27 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215631

            Bug ID: 215631
           Summary: Webkit incorrectly reuses closed tcp connections:
                    Failed to load resource: The network connection was
                    lost.
           Product: WebKit
           Version: Safari 13
          Hardware: Macintosh
                OS: macOS 10.15
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kevmun at amazon.com

In our webapp using webkit, we see an issue with certain AJAX requests, "Failed to load resource: The network connection was lost."

We have observed that using Fetch (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) we hit a timing issue where the browser tries to reuse a connection that was recently closed. With optimal network conditions, it’s about a 2% chance of this occurring. With high latency packets, we can reproduce %15 of the time. 

Steps to repro:

Navigate at exactly 7 seconds (when our server terminates the connection, reproducing outside this environment will depend on the server timeouts).

We've observed our TCP connections to be in TIME_WAIT at the time of failure;

The docs here refer to webkit keeping connections open
https://developer.apple.com/library/archive/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/CommonPitfalls/CommonPitfalls.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200818/ed9667d2/attachment-0001.htm>


More information about the webkit-unassigned mailing list