GNOME Bugzilla – Bug 731569
Server does not free all resources if session timeout
Last modified: 2014-06-18 13:24:48 UTC
Created attachment 278333 [details] [review] client: Destroy the rtsp watch after connection close After session timeout the server will not free the client object and the socket unless the other side has closed its end of the TCP connection. But that is bad since an unauthorized client can easily make the server unavailable.
Created attachment 278334 [details] [review] client: ref the context until rtsp watch is alive This patch is also necessary since it makes sure that unmanage_client () will not free the client context while the RTSP watch is being destroyed. And I have actually seen that happen.
commit f2b1aa8c817e78ff255c47d6f5637d528b7e2944 Author: Ognyan Tonchev <ognyan@axis.com> Date: Thu Jun 12 13:49:17 2014 +0200 client: ref the context until rtsp watch is alive Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731569 commit 97152525887e7f8d83a26c739f59e5520383be54 Author: Ognyan Tonchev <ognyan@axis.com> Date: Thu Jun 12 13:48:44 2014 +0200 client: Destroy the rtsp watch after connection close