Changeset 52089 in webkit


Ignore:
Timestamp:
Dec 14, 2009 3:09:13 AM (14 years ago)
Author:
zecke@webkit.org
Message:

[Qt] Connect QNetworkReply via direct connections.

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

In the past we have switched from auto connections to queued
connections to get some more stability. The problem with the
Queued connections is latency. Even when running simple loading
tests the time it takes to runs highly varies and by using
direct connections these tests produce a stable result.

We will have to look out for crashes coming from within the
QNetworkAccessManager due this patch and address them then.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52086 r52089  
     12009-12-03  Holger Hans Peter Freyther  <zecke@selfish.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Connect QNetworkReply via direct connections.
     6        https://bugs.webkit.org/show_bug.cgi?id=32113
     7
     8        In the past we have switched from auto connections to queued
     9        connections to get some more stability. The problem with the
     10        Queued connections is latency. Even when running simple loading
     11        tests the time it takes to runs highly varies and by using
     12        direct connections these tests produce a stable result.
     13
     14        We will have to look out for crashes coming from within the
     15        QNetworkAccessManager due this patch and address them then.
     16
     17        * platform/network/qt/QNetworkReplyHandler.cpp:
     18        (WebCore::QNetworkReplyHandler::start):
     19
    1202009-12-14  Holger Hans Peter Freyther  <zecke@selfish.org>
    221
  • trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

    r51411 r52089  
    428428
    429429    connect(m_reply, SIGNAL(finished()),
    430             this, SLOT(finish()), Qt::QueuedConnection);
     430            this, SLOT(finish()), Qt::DirectConnection);
    431431
    432432    // For http(s) we know that the headers are complete upon metaDataChanged() emission, so we
     
    434434    if (scheme == QLatin1String("http") || scheme == QLatin1String("https"))
    435435        connect(m_reply, SIGNAL(metaDataChanged()),
    436                 this, SLOT(sendResponseIfNeeded()), Qt::QueuedConnection);
     436                this, SLOT(sendResponseIfNeeded()), Qt::DirectConnection);
    437437
    438438    connect(m_reply, SIGNAL(readyRead()),
    439             this, SLOT(forwardData()), Qt::QueuedConnection);
     439            this, SLOT(forwardData()), Qt::DirectConnection);
    440440    connect(this, SIGNAL(processQueuedItems()),
    441             this, SLOT(sendQueuedItems()), Qt::QueuedConnection);
     441            this, SLOT(sendQueuedItems()), Qt::DirectConnection);
    442442}
    443443
Note: See TracChangeset for help on using the changeset viewer.