OpenCV-Python VideoCapture.read() does not return False when rtsp connection is interrupted

Did you use exceptions in your code? To avoid headaches just use your camera SDK. Usually camera sdk’s provide callbacks to the device connection & disconnection.