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

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 10 20:12:27 UTC 2018


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

--- Comment #11 from Olivier CrĂȘte <olivier.crete at ocrete.ca> ---
I used MSG_DONTWAIT because the receiver has code to retry (it blocks on a
select instead), so it will retry if nothing is received. But the sender
doesn't have this, if we really need to make it non blocking, then we need to
add some code to retry later and make the whole thing asynchronous, which I'm
afraid a big refactoring. This is why I'd rather we find why it blocks.. It's
probably because the receiver doesn't have a receiving thread at this point.

Does it always block in sp_writer_send_buf() called from gst_shm_sink_render()
for you ? If that's the case, I guess we can add a poll() in there, with a
sp_writer_set_flushing() type call that can unblock the send.

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