[Bug 710850] gstrtspconnection: force blocking tls handshaking
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Oct 25 03:12:19 CEST 2013
https://bugzilla.gnome.org/show_bug.cgi?id=710850
GStreamer | gst-plugins-base | 1.2.0
--- Comment #1 from Aleix Conchillo Flaqué <aleix at oblong.com> 2013-10-25 01:12:12 UTC ---
Created an attachment (id=258074)
View: https://bugzilla.gnome.org/attachment.cgi?id=258074
Review: https://bugzilla.gnome.org/review?bug=710850&attachment=258074
block first read and force synchrnous handshaking in TLS connection
Couldn't find any other way to solve this easily. So here's the first try.
>From the source code comment:
/**
* If we have a TLS connection, we are doing implicit auto-handshaking
* (which happens in a separate thread) when we first call the read
* functions in fill_raw_bytes. If we use non-blocking read here, we
* would get a G_IO_ERROR_TIMED_OUT during handshaking and we would
* just exit the dispatch read. So, we want the implicit
* auto-handshaking to happen synchronously.
*/
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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