multiple [connect - disconnect - connect] cycles on same port casuing RTSP Server to put that Port on CLOSE_WAIT
I am gst_rtsp_server to stream my webcam. The client closes and opens it multiple times. After some few reconnects, the RTSP server puts the particular port into CLOSE_WAIT state and hence makes that port useless. Strange is, the server can connect again but the camera is no longer streamed. On the GST client using rtspsrc, I get "could not read from resource" error.
Also, on the client side, ports are in TIME_WAIT state when ports on server are in CLOSE_WAIT state.
I would really appreciate the help in this regard.