[Webkit-unassigned] [Bug 29975] [Qt] Inform the application when a new request is created.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 7 08:25:07 PDT 2009


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





--- Comment #22 from Benjamin Meyer <ben at meyerhome.net>  2009-10-07 08:25:07 PDT ---
>> QtWebKit actively encourages that application have only 1 QNetworkAccessManager
>> that is shared among all of the existing QWebPages.  There are a number of
>> valid reasons for this
>> - Only X number of connections to a host at a time
>> - QNetworkCookieJar and QNetworkDiskCache syncing issues
>> - Memory and cpu usage of running multiple of these of course
>
> I think these are very very valid points, but I also think they are technically
> bugs in the QNetworkAccessManager implementation. Multiple QNAMs should share
> the connection count. The implementation should allow for sharing CookieJar and
> DiskCache, just as the API suggest that this is possible.

I guess what I was meant to say way  "QtWebKit actively encourages that
application have only 1 QNetworkAccessManager, 1 CookieJar and 1 cache that is
shared among all of the existing QWebPages."

You can have multiple QNetworkAccessManagers and they could share the objects,
but it is not encouraged.  For example when you set a cookie jar on a
QNetworkAccessManagers it sets the parent to itself.  So it is technically
possible the network code is not designed to work with this without some extra
work.

-- 
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