[Bug 797258] shmsrc: client main socket should be non-blocking

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 10 19:50:16 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797258

--- Comment #9 from Aleix Conchillo FlaquƩ <aconchillo at gmail.com> ---
>From the man page:

"""
... but differs in that MSG_DONTWAIT is a per-call option, whereas O_NONBLOCK
is a setting on the open file description (see open(2)), which will affect all
threads in the calling process and as well as other processes that hold file
descriptors referring to the same open file description.
"""

O_NONBLOCK affects other processes, MSG_DONTWAIT it seems it doesn't, may be
that's the issue?

In any case, it seems we can also remove MSG_DONTWAIT since O_NONBLOCK already
does the same (and more). And since we were already ignoring the async return
codes, we can keep doing that or try 2 or 3 times if we get EAGAIN?

-- 
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