[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
Tue Jan 22 18:00:08 PST 2013


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





--- Comment #12 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2013-01-22 18:02:00 PST ---
yes, you're right. The GUI is not being blocked, It is the under socket io thread that is being blocking because of not receiving incoming data in time.

And the use can also click "Stop" to abort this http connection request.

But what I really need is a "auto- read timeout" mechanism for which user can also set the timeout threshold value per socket connection.

I have discovered that QtWebKit is not using QAbstactSocket::waitForReadyRead(int ms) for reading data, instead, it uses a QSocketNotifier to receive "readyRead" signals from OS to achieve "non-blocking" behaviour.

Anyway, due to our internal project needs, to get a "read timeout" on non-blocking sockets, i think, to add a "ReadTimeout" type for QSocketNotifier will give user some goods. The API should be flexiable.

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