[Webkit-unassigned] [Bug 214383] [WinCairo][CURL] NetworkProcess consumes CPU resource greedily.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 16 00:12:19 PDT 2020


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

--- Comment #1 from Takashi Komori <takashi.komori at sony.com> ---
The cause of this issue is that CurlRequestSchduler::workerThread doesn't stop/sleep at ::select.
When WebKit gets response headers the CurlRequest makes the curl_easy_handle PAUSED.
We do not have to check paused handles by ::select but they are watched.
And if a handle is ready for read/write ::select goes through without any wait.
This makes worker thread busy loop.

The root cause is NetworkDataTaskCurl::invokeDidReceiveResponse() doesn't handle PolicyAction::Ignore properly, and active jobs in CurlRequestSceduler aren't removed until timeout.
So we have to call invalidateAndCancel() when policy action is Ignore.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200716/be1bf7c2/attachment.htm>


More information about the webkit-unassigned mailing list