Bug 59838 - Implement HTTP pipelining for CoreFoundation-based networking
Summary: Implement HTTP pipelining for CoreFoundation-based networking
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-04-29 15:30 PDT by David Kilzer (:ddkilzer)
Modified: 2011-05-03 16:25 PDT (History)
6 users (show)

See Also:


Attachments
Patch (8.88 KB, patch)
2011-04-29 15:30 PDT, David Kilzer (:ddkilzer)
eric: review-
Details | Formatted Diff | Diff
Patch v2 (9.02 KB, patch)
2011-05-03 11:29 PDT, David Kilzer (:ddkilzer)
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2011-04-29 15:30:04 PDT
Created attachment 91750 [details]
Patch

Reviewed by NOBODY (OOPS!).

Source/WebCore:

* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::ResourceRequest::doUpdatePlatformRequest): Set the
priority on the request if HTTP pipelining is enabled.
(WebCore::ResourceRequest::doUpdateResourceRequest): Read the
priority from the request if HTTP pipelining is enabled.
(readBooleanPreference): Enable code when compiling with
USE(CFNETWORK).
(WebCore::initializeMaximumHTTPConnectionCountPerHost): Ditto.

Source/WebKit/win:

* Interfaces/IWebViewPrivate.idl:
(IWebViewPrivate::httpPipeliningEnabled): Added declaration.
(IWebViewPrivate::setHTTPPipeliningEnabled): Added declaration.
* WebView.cpp:
(WebView::httpPipeliningEnabled): Added.
(WebView::setHTTPPipeliningEnabled): Added.
* WebView.h:
(WebView::httpPipeliningEnabled): Added declaration.
(WebView::setHTTPPipeliningEnabled): Added declaration.

WebKitLibraries:

* win/include/WebKitSystemInterface/WebKitSystemInterface.h:
(wkGetHTTPPipeliningPriority): Added declaration.
(wkSetHTTPPipeliningMaximumPriority): Added declaration.
(wkSetHTTPPipeliningPriority): Added declaration.
---
 8 files changed, 90 insertions(+), 2 deletions(-)
Comment 1 David Kilzer (:ddkilzer) 2011-04-29 15:31:33 PDT
<rdar://problem/8924448>
Comment 2 WebKit Review Bot 2011-04-29 15:31:47 PDT
Attachment 91750 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

WebKitLibraries/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Source/WebKit/win/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Source/WebKit/win/WebView.h:832:  The parameter name "enabled" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 4 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Build Bot 2011-04-29 20:33:11 PDT
Attachment 91750 [details] did not build on win:
Build output: http://queues.webkit.org/results/8529018
Comment 4 Eric Seidel (no email) 2011-05-01 09:50:24 PDT
Comment on attachment 91750 [details]
Patch

This seems fine.  You just need to update your ChangeLogs (and be sure toe update WebKitLibraires on windows before you land).
Comment 5 David Kilzer (:ddkilzer) 2011-05-02 12:55:38 PDT
(In reply to comment #4)
> (From update of attachment 91750 [details])
> This seems fine.  You just need to update your ChangeLogs (and be sure toe update WebKitLibraires on windows before you land).

Actually, I need to make webkit-patch adopt my workflow.  Bug 57242.  Entering bug numbers in ChangeLogs is just busywork (which I'll do manually until I fix webkit-patch).
Comment 6 David Kilzer (:ddkilzer) 2011-05-03 09:36:18 PDT
Part 1 of 2:

Committed r85611: <http://trac.webkit.org/changeset/85611>
Comment 7 David Kilzer (:ddkilzer) 2011-05-03 09:41:29 PDT
(In reply to comment #3)
> Attachment 91750 [details] did not build on win:
> Build output: http://queues.webkit.org/results/8529018

4>..\platform\network\cf\ResourceRequestCFNet.cpp(254) : error C3861: 'wkSetHTTPPipeliningMinimumFastLanePriority': identifier not found
Comment 8 David Kilzer (:ddkilzer) 2011-05-03 11:29:13 PDT
Created attachment 92093 [details]
Patch v2

This should build now on the Windows buildbot.
Comment 9 WebKit Review Bot 2011-05-03 11:31:16 PDT
Attachment 92093 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebKit/win/WebView.h:837:  The parameter name "enabled" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 David Kilzer (:ddkilzer) 2011-05-03 11:34:09 PDT
(In reply to comment #9)
> Attachment 92093 [details] did not pass style-queue:
> 
> Source/WebKit/win/WebView.h:837:  The parameter name "enabled" adds no information, so it should be removed.  [readability/parameter_name] [5]

Fixed locally.
Comment 11 David Kilzer (:ddkilzer) 2011-05-03 16:25:57 PDT
Part 2 of 2:

Committed r85684: <http://trac.webkit.org/changeset/85684>