[libnice] receiving data consumes 100% cpu on initiator peer

Klaus Kranz klaus.kranz at access-company.com
Tue Nov 4 03:30:46 PST 2014

Dear all.

I just found that during data communication using pseudotcp the „initiator“
peer consumes 99-100% CPU using nice_agent_recv_nonblocking().

Varying the poll frequency which was adjusted to approx 100ms doesn’t
change it. Commenting out the call made it visible that the load is
consumed somewhere under the hood inside libnice.

Added a usleep(1msec ) in component_io_cb()  released the cpu form its
pain, but made the communication very unstable and or slow.

Does someone have an idea what’s going wrong here ?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20141104/2a18769f/attachment.html>

More information about the nice mailing list