RTSP server keep streaming even though client was disconnected
Hello everyone...
I'm using Ubuntu 20.04 and gst-rtsp-server 1.16.2.
So I've noticed this weird issue where I'm streaming video between 2 computers (server being Raspberry PI4, client is my laptop). Both computers are connected via ethernet cable. If I disconnect the cable, I've noticed that the server doesn't stop the stream.
I also tried gst_rtsp_session_set_timeout(session, 5)
and there wasn't any difference.
When I reconnect the cable usually the stream will stop, but not 100% of times. I feel like when I wait longer (about 2 minutes) before reconnecting the cable then the streaming will continue even after I connect the cable.
I can see that (one) by looking at top
and see the CPU usage, and (two) by looking in Wireshark and see UDP packets from that IP.
Here's a snapshot of the Wireshark capture:
I was curious why this happens, and also, is this a bug? Thank you.