rtsp-server: tls client socket leaks when using new main context
Submitted by Aleix Conchillo Flaqué
Link to original bug (#761844)
Description
Created attachment 320835
test-video with different main context
I've updated our streaming server to use GStreamer 1.6.3 (gst-rtsp-server 1.6.2), glib 2.46.2 and glib-networking 2.46.1.
There's an RTSP TLS socket leak for the socket used to communicate back with the client.
The leak only happens occurs if a different GMainContext is used. I'm attaching a patch for the examples/test-video.c.
Once the server is running just run a client with:
$ gst-launch-1.0 rtspsrc location=rtsps://user:password@127.0.0.1:8554/test tls-validation-flags=0 ! fakesink silent=false -v
lsof will show the leaks.
This worked before with GStreamer 1.4.5, glib 2.42.0 and glib-networking 2.42.0
Patch 320835, "test-video with different main context":
tls-socket-leak.patch