<?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>137282</bug_id>
          
          <creation_ts>2014-09-30 18:04:52 -0700</creation_ts>
          <short_desc>[SOUP] Consider reducing max simultaneous connections</short_desc>
          <delta_ts>2016-01-07 07:00:40 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>berto</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>danw</cc>
    
    <cc>gustavo</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mrobinson</cc>
    
    <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1038426</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2014-09-30 18:04:52 -0700</bug_when>
    <thetext>I noticed this code in Source/WebCore/platform/network/soup/SoupNetworkSession.cpp:

    // Values taken from http://www.browserscope.org/ following
    // the rule &quot;Do What Every Other Modern Browser Is Doing&quot;. They seem
    // to significantly improve page loading time compared to soup&apos;s
    // default values.
    static const int maxConnections = 35;
    static const int maxConnectionsPerHost = 6;

I checked Browserscope [1], and Firefox, Internet Explorer, and Safari all allow 17 connections nowadays. Chrome only allows 10. I have no clue if reducing max connections will improve performance, but I like the sound of &quot;Do What Every Other Modern Browser Is Doing&quot;....

[1] http://www.browserscope.org/?category=network&amp;v=top</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1038495</commentid>
    <comment_count>1</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2014-10-01 00:15:44 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; I noticed this code in Source/WebCore/platform/network/soup/SoupNetworkSession.cpp:
&gt; 
&gt;     // Values taken from http://www.browserscope.org/ following
&gt;     // the rule &quot;Do What Every Other Modern Browser Is Doing&quot;. They seem
&gt;     // to significantly improve page loading time compared to soup&apos;s
&gt;     // default values.
&gt;     static const int maxConnections = 35;
&gt;     static const int maxConnectionsPerHost = 6;
&gt; 
&gt; I checked Browserscope [1], and Firefox, Internet Explorer, and Safari all allow 17 connections nowadays. Chrome only allows 10. I have no clue if reducing max connections will improve performance, but I like the sound of &quot;Do What Every Other Modern Browser Is Doing&quot;....
&gt; 
&gt; [1] http://www.browserscope.org/?category=network&amp;v=top

In general a higher amount of max_connections allows more parallelism, and thus faster downloads. Said that, the only reason to limit that number (apart from not overflowing your router&apos;s NAT) is to be &quot;nice&quot; with the servers and the other clients.

There should be a reason why they lowered that number, perhaps server admins are actually reducing that number.

In any case I&apos;m pretty sure that if FF, IE and Safari have a lower number right now it&apos;s because they have deeply studied all the consequences and concluded that having half the connections is better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097110</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-05-23 11:41:20 -0700</bug_when>
    <thetext>(In reply to comment #1) 
&gt; In general a higher amount of max_connections allows more parallelism, and
&gt; thus faster downloads. Said that, the only reason to limit that number
&gt; (apart from not overflowing your router&apos;s NAT) is to be &quot;nice&quot; with the
&gt; servers and the other clients.

I presume that major browsers use a lower number because having more connections open could slow them down, and they prefer to fully load a few resources and then fully load a few more rather than have many loading at the same time. It probably makes the browser feel &quot;faster.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153077</commentid>
    <comment_count>3</comment_count>
      <attachid>268374</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-06 10:26:49 -0800</bug_when>
    <thetext>Created attachment 268374
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153404</commentid>
    <comment_count>4</comment_count>
      <attachid>268374</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-07 07:00:36 -0800</bug_when>
    <thetext>Comment on attachment 268374
Patch

Clearing flags on attachment: 268374

Committed r194697: &lt;http://trac.webkit.org/changeset/194697&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153405</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-07 07:00:40 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>268374</attachid>
            <date>2016-01-06 10:26:49 -0800</date>
            <delta_ts>2016-01-07 07:00:36 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-137282-20160106122616.patch</filename>
            <type>text/plain</type>
            <size>1795</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk0NjI0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggODRlMjRmYTI0OGM3ZGIx
NmQ2YjE5MGNmZjkxMWI2MjllNDkwNTE1Yi4uMTY0NjQyNzg2OTdlZTY1ZTM1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