After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750453 - Descriptor leak with PyGi
Descriptor leak with PyGi
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-05 14:21 UTC by aborilov
Modified: 2018-01-13 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description aborilov 2015-06-05 14:21:56 UTC
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
Gst.init(None)
rtsp_server = GstRtspServer.RTSPServer()
rtsp_server.attach(None)
def client_connected(client, context):
    print "Client connected"
rtsp_server.connect('client-connected', client_connected)
factory = GstRtspServer.RTSPMediaFactoryURI()
factory.set_uri('rtsp://rtsp.algont:4000/62wKYOvnazxrv3s8cLIfmr')
factory.set_shared(True)
rtsp_server.get_mount_points().add_factory('/good', factory)
GObject.MainLoop().run()
Comment 1 Tim-Philipp Müller 2016-06-20 11:11:42 UTC
Not sure this is a bug in gst-rtsp-server then?
Comment 2 Tim-Philipp Müller 2018-01-13 15:39:35 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!