<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>150035</bug_id>
          
          <creation_ts>2015-10-12 11:03:13 -0700</creation_ts>
          <short_desc>[Curl] Increase limit of parallel network requests.</short_desc>
          <delta_ts>2015-10-12 14:22:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>peavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>galpeter</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1132362</commentid>
    <comment_count>0</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-10-12 11:03:13 -0700</bug_when>
    <thetext>If the limit is low, other network requests will often be blocked until active requests finishes. This can affect performance in a negative way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132367</commentid>
    <comment_count>1</comment_count>
      <attachid>262902</attachid>
    <who name="">peavo</who>
    <bug_when>2015-10-12 11:09:53 -0700</bug_when>
    <thetext>Created attachment 262902
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132389</commentid>
    <comment_count>2</comment_count>
      <attachid>262902</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-10-12 11:30:22 -0700</bug_when>
    <thetext>Comment on attachment 262902
Patch

What if the limit is too big?  Why is there a limit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132395</commentid>
    <comment_count>3</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-10-12 11:38:12 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 262902 [details]
&gt; Patch
&gt; 
&gt; What if the limit is too big?  Why is there a limit?

Good point. It might be better to leave this decision to Curl, since it is probably handled well there. In that case, I dont&apos;t think a big limit would hurt :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132404</commentid>
    <comment_count>4</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-10-12 11:56:39 -0700</bug_when>
    <thetext>It seems there already is a Curl option for this (with default 0, meaning infinite number of connections):

http://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html

Since Curl doesn&apos;t have a limit here, maybe we shouldn&apos;t either? If we limit the number of connections, I think the limit should be higher that it is now at least.

Another problem with the limit is that it can effectively block all future network requests if the current connections are never closed (for some reason).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132466</commentid>
    <comment_count>5</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-10-12 13:42:24 -0700</bug_when>
    <thetext>Thanks for reviewing :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132485</commentid>
    <comment_count>6</comment_count>
      <attachid>262902</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-12 14:22:36 -0700</bug_when>
    <thetext>Comment on attachment 262902
Patch

Clearing flags on attachment: 262902

Committed r190887: &lt;http://trac.webkit.org/changeset/190887&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1132486</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-12 14:22:39 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>262902</attachid>
            <date>2015-10-12 11:09:53 -0700</date>
            <delta_ts>2015-10-12 14:22:36 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-150035-20151012200859.patch</filename>
            <type>text/plain</type>
            <size>1333</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE5MDg2MykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE1LTEwLTEyICBQZXIgQXJu
ZSBWb2xsYW4gIDxwZWF2b0BvdXRsb29rLmNvbT4KKworICAgICAgICBbQ3VybF0gSW5jcmVhc2Ug
bGltaXQgb2YgcGFyYWxsZWwgbmV0d29yayByZXF1ZXN0cy4KKyAgICAgICAgaHR0cHM6Ly9idWdz
LndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE1MDAzNQorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIElmIHRoZSBsaW1pdCBpcyB0b28gbG93LCBvdGhl
ciBuZXR3b3JrIHJlcXVlc3RzIHdpbGwgb2Z0ZW4gYmUgYmxvY2tlZCB1bnRpbAorICAgICAgICBh
Y3RpdmUgcmVxdWVzdHMgZmluaXNoZXMuIFRoaXMgY2FuIGFmZmVjdCBwZXJmb3JtYW5jZSBpbiBh
IG5lZ2F0aXZlIHdheS4KKworICAgICAgICAqIHBsYXRmb3JtL25ldHdvcms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