Could not read from resource,gst_rtspsrc_loop_udp ()

When I run the program “deeptream-app -c configfile.txt”, the source is RTSP camera, running for a period of time will appear this situation, and then the program stops. Is it a network problem? Or the cameras? Isn’t there a reconnection mechanism in the configuration file,“rtsp-reconnect-interval-sec=30”? Doesn’t it work?
After restarting the program, it is normal again. But this kind of problem will appear again.

WARNING from source: Could not read from resource.
** 26 Debug info: gstrtspsrc.c(5293): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin2/GstURIDecodeBin:src_elem/Gst RTSPSrc:source:**
** 27 Unhandled return value -7.**
** 28 ERROR from source: Could not read from resource.**
** 29 Debug info: gstrtspsrc.c(5361): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin2/GstURIDecodeBin:src_elem/Gst RTSPSrc:source:**
** 30 Could not receive message. (System error)**
** 31 ERROR from source: Internal data stream error.**
** 32 Debug info: gstrtspsrc.c(5653): gst_rtspsrc_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin2/GstURIDecodeBin:src_elem/GstRTSP Src:source:**
** 33 streaming stopped, reason error (-5)**

Seems the rtsp service is not stable. “rtsp-reconnect-interval-sec=30” can work only when tcp session is alive.

what do you mean by rtsp service?
The problem is edge devices,the network,or the camera?

I can’t know the reason. The error log is the result, the reason need you to find out.

Thank you all the same

If you want to dig into the root cause, it is better to analysis the packets between sever and client according to the protocol RFC 2326 - Real Time Streaming Protocol (RTSP).
You can debug with gstreamer rtspsrc debug log rtspsrc.
There are also a lot of open source rtsp analysis tools such as wireshark (Wireshark · Download) which can help to analysis the rtsp requests and response.