[webkit-reviews] review denied: [Bug 64355] [Soup] Cannot override default max-conns and max-conns-per-host Soup Session settings : [Attachment 102030] patch8

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 26 14:37:43 PDT 2011


Martin Robinson <mrobinson at webkit.org> has denied  review:
Bug 64355: [Soup] Cannot override default max-conns and max-conns-per-host Soup
Session settings
https://bugs.webkit.org/show_bug.cgi?id=64355

Attachment 102030: patch8
https://bugs.webkit.org/attachment.cgi?id=102030&action=review

------- Additional Comments from Martin Robinson <mrobinson at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=102030&action=review


This looks like a good solution to me. Thanks for working on it. If you can get
some buy-in from Sergio and some of the others who've commented here. I'll r+
this with the small fixes I suggested below.

> Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:849
> +    initData = g_object_get_data(G_OBJECT(session), "webkit-init");

I'd prefer smething like this:

static SoupSession* session = 0;
if (!session) {
    session = soup_session_async_new();
    g_object_set(...);
}

Depending on "webkit-init" adds a dependency on some other random bit of the
code.

> Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:850
> +    if (!initData)

You should use curly braces on this if block, since the contents span more than
one line.

>> Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:854
>> +			     NULL);
> 
> Use 0 instead of NULL.  [readability/null] [5]

You can ignore this failure. The style-bot isn't smart enough to understand
that the NULL is necessary because the g_object_set is on another line.


More information about the webkit-reviews mailing list