[Bug 796797] Gstreamer RTSP client connects to Gstreamer RTSP server: Only fixed number of connections are possible, then always "Error (503): Service Unavailable"
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Jul 13 16:29:53 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=796797
--- Comment #7 from Marie Maurer <meinemailingliste2 at online.de> ---
Is this the right way to go?
Taken e.g. from
https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-video.c
/* this timeout is periodically run to clean up the expired sessions from the
* pool. This needs to be run explicitly currently but might be done
* automatically as part of the mainloop. */
static gboolean
timeout (GstRTSPServer * server)
{
GstRTSPSessionPool *pool;
pool = gst_rtsp_server_get_session_pool (server);
gst_rtsp_session_pool_cleanup (pool);
g_object_unref (pool);
return TRUE;
}
and calling it periodically
/* add a timeout for the session cleanup */
g_timeout_add_seconds (2, (GSourceFunc) timeout, server);
There is
gst_rtsp_session_set_timeout (GstRTSPSession *session, guint timeout);
Is it also needed? Is the timeout only activated, when one is calling this
function? What is default value, when this function is not called?
What is a good/minimum value for this timeout? Does a low value have
disadvantages? E.g. a lot keep alive messages are exchanged?
(unfortunately the documentation is a bit less, not really describing
the important things. I refer to
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-server/html/GstRTSPSession.html#gst-rtsp-session-set-timeout
)
--
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