[Webkit-unassigned] [Bug 106761] [Qt] Using sleep to delay in http server reponse causes QtWebKit page loading blocked

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 21 03:18:08 PST 2013


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





--- Comment #5 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2013-01-21 03:19:59 PST ---
I wrote a simple test to use QAbstractSocket::waitForReadyRead:

#include<QtCore>
#include<QtNetwork>

int _tmain(int argc, _TCHAR* argv[])
{
    qDebug("%s: main begin", QTime::currentTime().toString().toAscii().data());
    QTcpSocket s;
    s.connectToHost(QString("10.167.233.52"), 8888);
    bool ret = s.waitForReadyRead(30000);
    qDebug("%s: ret=%d", QTime::currentTime().toString().toAscii().data(), ret);
    return 0;
}

The debug output indicates QAbstractSocket::waitForReadyRead performs OK.

However, QtWebKit in qt-4.8.4 seems to NOT using it, it uses a QReadNotifier which says "wrapping a socket into non-blocking mode", but, there is even no read timeout mechanism!

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