[Bug 772841] udpsrc: high CPU usage at high packet rate
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Nov 14 18:47:38 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=772841
Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nicolas at ndufresne.ca
--- Comment #21 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
(In reply to Petr Kulhavy from comment #20)
> I have been looking at recvmmsg(). But the timeout seems to be buggy:
>
> man recvmmsg:
> "BUGS: The timeout argument does not work as intended. The timeout is
> checked only after the receipt of each datagram, so that if up to vlen-1
> datagrams are received before the timeout expires, but then no further
> data‐grams are received, the call will block forever."
>
> So I'm afraid it is useless :-(
Not totally true. When using it non-blocking, you can first poll, and then you
call recvmmsg with N messages allocated. As it's non blocking, it will give you
back M messages (where M <= N). You don't need to use the timeout.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list