[Bug 785684] rtspconnection: add API to send messages without blocking

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Oct 24 15:11:04 UTC 2017


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

--- Comment #20 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Sorry, I was thinking of send_messages() earlier (plural). My contention was
that the entire while() loop, so most of the function, can be replaced with
_send_messages() on a blocking socket instead.

I am not sure if the code you quote makes sense. I think a single message will
always be fully written or not. It doesn't make sense to send a partial
message/packet (and there's an error code for when it's too big). And makes
even less sense to re-send parts of a message/packet, and there's no mechanism
to say that this is the continuation from the previous one.

So I don't think we need to worry about this.

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