camera-streamer icon indicating copy to clipboard operation
camera-streamer copied to clipboard

Unable to restart service if RTSP stream is active when service is stopped

Open kmusser2 opened this issue 1 year ago • 0 comments

If an RTSP stream is active when the service is stopped, camera-streamer leaves the socket in TIME_WAIT state. This prevents the service from restarting until the TIME_WAIT state is cleaned up by the OS. The systemctl attempts to restart the service repeatedly, but it will always fail until the TIME_WAIT clears.

The following is written to syslog: camera-streamer[3317]: output/rtsp/rtsp.cc: ?: Failed to create RTSP server: bind() error (port number: 8554): Address already in use

kmusser2 avatar Dec 09 '23 18:12 kmusser2