Client access stream during RTSP server is cleaning up

Tran Tu camtubk05 at gmail.com
Fri Aug 12 08:47:23 UTC 2016


Hi there,

I try to implement the forcing close from RTSP server side by using the
guideline from 
https://github.com/GStreamer/gst-rtsp-server/tree/master/docs

If there was no activity in a particular session for a long time (by default
60
 seconds), the application should remove the session from the pool. For
this,
 the application should periodically (say every 2 seconds) check if no
sessions
 expired and call gst_rtsp_session_pool_cleanup() to remove them.
 
 When a session is removed from the sessionpool and its last reference is
 unreffef, all related objects and media are destroyed as if a TEARDOWN
happened
 from the client.


gst_rtsp_session_pool_cleanup(Pool); -> clean inactive sessions
gst_rtsp_session_pool_filter(Pool, (GstRTSPSessionPoolFilterFunc)RemoveFunc,
                                     Server); -> remove all active sessions
in pool

In which GST_RTSP_FILTER_REMOVE is returned from RemoveFunc. 
- After calling gst_rtsp_session_pool_filter, no active sessions available
at that time to be removed
But then, VLC access the stream while RTSP server is still do cleaning. That
makes the pipeline can not be freed gracefully.

Could someone show me how to ignore the client connections to server while
it is freeing resource? 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Client-access-stream-during-RTSP-server-is-cleaning-up-tp4679058.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list