ICE thread is constantly woken up for nothing
@roysjosh
Submitted by Joshua Roys Assigned to Joshua Roys @roysjosh
Description
I started looking into https://github.com/meetecho/janus-gateway/issues/154 as it is fairly reproducible for me. Like the OP of that bug, janus-gateway's "ice thread" pegs a CPU core at 100% showing an eventfd being returned from a poll as having IO ready. When I saw that 0.1.4 did not show the bug and most recent versions did, I decided to do a git bisect on libnice. It narrowed down the commits that introduced this behavior to the following:
243c47ec
agent: Add nice_agent_recv() allowing blocking receives on sockets
c5672702
agent: Move GSource handling into Component
12ee430e
agent: Fix format specifiers in debug messages
2b6370a8
agent: Support invoking I/O callbacks in non-default contexts
Please let me know if you need any more information to track this down.