[Webkit-unassigned] [Bug 64355] New: max-conns and max-conns-per-host not honored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 12 06:27:56 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=64355

           Summary: max-conns and max-conns-per-host not honored
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: marco at peereboom.us


Created an attachment (id=100476)
 --> (https://bugs.webkit.org/attachment.cgi?id=100476&action=review)
patch

Both max-conns and max-conns-per-host are not honored.  This makes the
following code not do what one would expect:

        session = webkit_get_default_session();
        g_object_set(session, "max-conns", max_connections, (char *)NULL);
        g_object_set(session, "max-conns-per-host", max_host_connections,
            (char *)NULL);

Problem is that webkit will overwrite these values upon "first contact"
with a site.  The responsible file is:
WebCore/platform/network/soup/ResourceHandleSoup.cpp in function
static void ensureSessionIsInitialized(SoupSession* session)
    static const int maxConnections = 60;
    static const int maxConnectionsPerHost = 6;
...
    g_object_set(session,
                 SOUP_SESSION_MAX_CONNS, maxConnections,
                 SOUP_SESSION_MAX_CONNS_PER_HOST, maxConnectionsPerHost,
                 NULL);

This code is run AFTER I set those values.

Attached is a patch that fixes this.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list