[Webkit-unassigned] [Bug 227428] very high cpu load on page with websocket

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 1 08:58:41 PDT 2021


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

--- Comment #3 from Martijn <mxberntsen at gmail.com> ---
rc = ::select(maxfd + 1, &readfds, &writefds, &exceptfds, &timeout);
} while (rc == -1 && errno == EINTR);
for (auto& stream : m_streamList.values())

I've increased the timeout value to 2000000 us, my webpage is loaded, websocket connection is made, no data is transfering (checked with wireshark) and I put a breakpoint at the line starting with 'for (...'

the breakpoint triggers instantly and what I see is that readfds has a count of 1, writefds has a count of 0, exceptfds has a count of 1. they all contain the same data:
[0] 1084
[1] 1475739....
rest is all equal to [1] (uninitialized I assume)

continuing the function 'TryToTransfer' results in curl returning CURLE_AGAIN.

I would not expect the readfds to return when no data is transfered, does exceptfds give a clue?

-- 
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/20210701/5b1cf0bd/attachment-0001.htm>


More information about the webkit-unassigned mailing list