[Bug 797258] shmsrc: client main socket should be non-blocking
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Oct 10 20:18:42 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=797258
--- Comment #12 from Aleix Conchillo Flaqué <aconchillo at gmail.com> ---
(In reply to Olivier Crête from comment #11)
> 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.
>
I see. Forget about my lastest patch, it's just a crappy hack.
> 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.
Yes, it always blocks there. I'll see if I can find out more.
--
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