[Bug 785684] rtspconnection: add API to send messages without blocking
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Oct 12 08:13:05 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=785684
--- Comment #16 from Jonathan Karlsson <jonathan.karlsson at axis.com> ---
I don't really understand the gsocket code just before it calls
block_on_timeout though
(https://git.gnome.org/browse/glib/tree/gio/gsocket.c#n4349).
timeout is != 0 if it is blocking (socket->priv->blocking ? -1 : 0).
So it checks if it is in blocking mode but at the same time it checks if errno
is EWOULDBLOCK or EAGAIN. I thought those errors only appeared in non-blocking
mode.
But perhaps not, so it gets EWOULDBLOCK from sendmsg() and because
socket->priv->blocking is TRUE it calls block_on_timeout, and that's where the
test hangs unless the socket is explicitly set to non-blocking before the call.
--
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