[webkit-qt] QWebPage leaking network threads?
İsmail Dönmez
ismail at namtrac.org
Wed Jul 14 23:58:54 PDT 2010
Hi again;
On Wed, Jul 14, 2010 at 8:14 PM, İsmail Dönmez <ismail at namtrac.org> wrote:
> Hi Benjamin;
>
> On Wed, Jul 14, 2010 at 8:13 PM, Benjamin Poulain <
> benjamin.poulain at nokia.com> wrote:
>>
>>
>> On 07/14/2010 07:03 PM, ext İsmail Dönmez wrote:
>>
>>> I have a small browser widget based on QWebView using a custom QWebPage.
>>> The app works on an embedded Windows CE device. The problem is if I open
>>> and close the browser 2-3 times no web page will open after the 3th
>>> time. I can reproduce this everytime. Looking at the thread count,
>>> deleting QWebPage leaves some threads around.
>>>
>>> I am guessing these are networking related loader threads. I wonder if
>>> anyone experienced a similar problem before?
>>>
>>
>> It is probably the thread pool. It is cleaned after some time idle.
>> Could you verify if it is the case?
>>
>>
> I indeed suspect so, need to debug further tomorrow in the office. BUT, how
> do I force a cleanup? In embedded space it seems its not cleaned up fast
> enough.
>
Unfortunately its not the global thread pool, I did;
QThreadPool::globalInstance()->setExpiryTimeout(500);
But the threads are still not dying.
Regards,
ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100715/8e9dfe9a/attachment.html>
More information about the webkit-qt
mailing list