Descriptors leak with gst-rtsp-server and python

aborilov aborilov at
Fri Jun 5 13:04:09 PDT 2015

I found that if connect listener to rtsp_server event 'client-connected'(even
empty method) descriptors are leak for each client connect-disconnet.
After client disconnet, it left one CLOSE_WAIT connection.
If I remove listener, then no leak, and method gst_rtsp_client_finalize
calls on every client disconnet. But with listener it never called.

I found that there are no such problem in C.

My simple test:
from gi.repository import Gst, GObject, GstRtspServer
rtsp_server = GstRtspServer.RTSPServer()
def client_connected(client, context):
    print "Client connected"
rtsp_server.connect('client-connected', client_connected)
factory = GstRtspServer.RTSPMediaFactoryURI()
rtsp_server.get_mount_points().add_factory('/good', factory)

Please tell me how can I fix this? Or where to look for?

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list