Bug 137362 - [iOS] Networking process stops loading web pages while running Alexa test with random URL list
Summary: [iOS] Networking process stops loading web pages while running Alexa test wit...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Pratik Solanki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-10-02 15:03 PDT by Pratik Solanki
Modified: 2014-10-02 16:41 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.40 KB, patch)
2014-10-02 15:15 PDT, Pratik Solanki
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pratik Solanki 2014-10-02 15:03:12 PDT
The networking process stops loading pages after some hours of loading random Alexa urls. When this happens we noticed that the process had hit its limit of dispatch queue threads - we had 64 com.apple.WebKit/CFNetwork threads in the Networking process. Networking comes to a stall and no progress is made until the process is killed and restarted. This can happen if ResourceHandleCFURLConnectionDelegateWithOperationQueue code is waiting for a semaphore signal and the web process dies. The cleanup code for ResourceHandleCFURLConnectionDelegateWithOperationQueue does not signal the semaphore and thus the thread just hangs around forever. Eventually, we can accumulate enough threads to hit the queue thread limit.
Comment 1 Pratik Solanki 2014-10-02 15:03:27 PDT
<rdar://problem/18507382>
Comment 2 Pratik Solanki 2014-10-02 15:15:51 PDT
Created attachment 239147 [details]
Patch
Comment 3 Pratik Solanki 2014-10-02 16:39:46 PDT
Committed r174244: <http://trac.webkit.org/changeset/174244>