[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
Thu Jan 24 02:40:20 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106761
--- Comment #15 from Chen Zhixiang <chenzx at cn.fujitsu.com> 2013-01-24 02:42:14 PST ---
Created an attachment (id=184449)
--> (https://bugs.webkit.org/attachment.cgi?id=184449&action=review)
Patch for user customable read timeout on non-blocking socket (Works on Qt-4.8.4 Windows)
To see the effect, you must modify WebPage in demos/browser to use ErrorPageExtension:
bool WebPage::extension(Extension extension, const ExtensionOption *option, ExtensionReturn *output)
{
if(extension == QWebPage::ErrorPageExtension)
{
QWebPage::ErrorPageExtensionOption* opt = (QWebPage::ErrorPageExtensionOption*)option;
QWebPage::ErrorPageExtensionReturn* ret = (QWebPage::ErrorPageExtensionReturn*)output;
QString text("");
switch(opt->error)
{
case QNetworkReply::TimeoutError:
ret->content = QByteArray("<body>Read Timeout</body>");
return true;
default:
break;
}
}
return false;
}
bool WebPage::supportsExtension(Extension extension) const
{
return extension==ErrorPageExtension || QWebPage::supportsExtension(extension);
}
--
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