[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
Sun Jan 20 18:25:38 PST 2013


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





--- Comment #3 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2013-01-20 18:27:28 PST ---
I guess the problem does NOT relate to IconDatabase::syncThreadMainLoop(), it's a classical problem:

QtWebKit uses a blocking socket for under networking, if the network or server blocks/delays, it will cause GUI client to blocked.

The root solution is to use a non-blocking socket for client QtWebKit, but i hesitate whether it needs big modification?

Perhaps i could use bool QAbstractSocket::waitForReadyRead(int msecs = 30000) to fix this, But due to https://bugreports.qt-project.org/browse/QTBUG-24451 , waitForReadyRead is also not reliable.

So, how to ```non-blocking``` in QtWebKit's network part code?

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