Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r180927 - [SOUP] Synchronous XMLHttpRequests can time out when …
…we reach the max connections limit https://bugs.webkit.org/show_bug.cgi?id=141508 Reviewed by Sergio Villar Senin. Source/WebCore: Use SOUP_MESSAGE_IGNORE_CONNECTION_LIMITS flag when loading a synchronous message instead of increasing the maximum number of connections allowed if the soup version is recent enough. The current solution of increasing/decreasing the limits doesn't always work, because connections are not marked as IDLE in libsoup until the message is unqueued, but we don't wait for the message to be unqueued to finish our loads in WebKit, we finish them as soon as we have finished reading the stream. This causes that synchronous loads keep blocked in the nested main loop until the timeout of 10 seconds is fired and the load fails. Also marked WebCoreSynchronousLoader class as final, the virtual methods as override and removed the unsused method isSynchronousClient. * platform/network/soup/ResourceHandleSoup.cpp: (WebCore::createSoupMessageForHandleAndRequest): (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader): (WebCore::WebCoreSynchronousLoader::isSynchronousClient): Deleted. (WebCore::WebCoreSynchronousLoader::didReceiveResponse): (WebCore::WebCoreSynchronousLoader::didReceiveData): (WebCore::WebCoreSynchronousLoader::didReceiveBuffer): (WebCore::WebCoreSynchronousLoader::didFinishLoading): (WebCore::WebCoreSynchronousLoader::didFail): (WebCore::WebCoreSynchronousLoader::didReceiveAuthenticationChallenge): (WebCore::WebCoreSynchronousLoader::shouldUseCredentialStorage): Tools: Add a unit test to check that synchronous XHRs load even if the maximum connection limits are reached. * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp: (testWebViewSyncRequestOnMaxConns): (serverCallback): (beforeAll): * gtk/jhbuild.modules: Bump libsoup version to 2.49.91.
- Loading branch information
1 parent
9fbeeb0
commit 67e6ac0
Showing
5 changed files
with
142 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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