Bug 18431 - [Soup] Limit the number of connections
Summary: [Soup] Limit the number of connections
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk, Soup
Depends on:
Blocks:
 
Reported: 2008-04-11 12:40 PDT by Luca Bruno
Modified: 2009-09-07 06:39 PDT (History)
3 users (show)

See Also:


Attachments
maxconnections.patch (2.79 KB, patch)
2009-09-06 23:57 PDT, Xan Lopez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Bruno 2008-04-11 12:40:13 PDT
Hello,
i think the soup backend of the GTK+ port should tweak the number of maximum total connections and connections per host. Currently soup uses 10 totally and 2 per host by default.
For me 20:2 is currently the most responsive choice.
Instead incrementing the max conn per host seems speeder for larger web sites but takes more time for first contents to be rendered.

These informations are from my slow 256k connection, so you might want to don't take care of.
Comment 1 Dirk Schulze 2008-04-12 14:19:24 PDT
It makes no difference to me to take total connections up to 20 but sites load a bit faster with increasing connection per host to 5.
Comment 2 Xan Lopez 2009-09-06 14:25:40 PDT
It would be good to do this before 2.28 I think. What are the defaults for Firefox? IIRC bdash said on IRC Safari uses 6 as the limit for connections per host (no idea about the total limit).
Comment 3 Dan Winship 2009-09-06 16:42:53 PDT
http://stevesouders.com/ua/index.php says Firefox does 6 per host and "more than 60" total, and Safari is 4/60+. (His test doesn't try to measure total connections beyond 60, so it doesn't end up figuring out what the actual total limit is. It's possible there's none.)
Comment 4 Xan Lopez 2009-09-06 23:57:41 PDT
Created attachment 39133 [details]
maxconnections.patch

OK, using 60/6 since that's what most people seem to be using. It really improves some pages quite a bit, like reddit.com or planet gnome.
Comment 5 Xan Lopez 2009-09-06 23:58:33 PDT
(In reply to comment #4)
> Created an attachment (id=39133) [details]
> maxconnections.patch
> 
> OK, using 60/6 since that's what most people seem to be using. It really
> improves some pages quite a bit, like reddit.com or planet gnome.

Well, or *seem* to be using anyway, since as Dan says the total limit might be unbounded. 60 seems like a reasonable value anyway.
Comment 6 Xan Lopez 2009-09-07 06:39:17 PDT
Comment on attachment 39133 [details]
maxconnections.patch

r+ by gustavo on IRC, which has problems accessing bugzilla.
Comment 7 Xan Lopez 2009-09-07 06:39:37 PDT
Landed in r48111, closing.