SRT connect/disconnect when high latency to server
jahaddow opened this issue · 2 comments
I have mediamtx running on a VPS in London, UK and I am in Australia. When sending via SRT the log shows constant connects and disconnects. I have tried multiple VPS in London and the same problem occurs. It does not happen to my servers in Australia and USA.
Everything is pointing towards an issue when the latency between client and server is high, in this case, over 250ms. The same issue also occurs when trying to read a stream via SRT.
2024/09/10 11:28:17 INF [SRT] [conn [2603:c022:xxxx:2a7e:3b7b:f3b4:xxxx:eb82]:51237] opened
2024/09/10 11:28:17 INF [path zowie2] closing existing publisher
2024/09/10 11:28:17 INF [SRT] [conn [2603:c022:xxxx:2a7e:3b7b:f3b4:xxxx:eb82]:51237] closed: terminated
2024/09/10 11:28:19 INF [SRT] [conn [2603:c022:xxxx:2a7e:3b7b:f3b4:xxxx:eb82]:51237] closed: astits: no more packets
This issue is being automatically closed because it does not follow the issue template.
Please reopen the issue and make sure to include all sections of the template.
Looking at it further, mediamtx seems to show the source connecting multiple times which appears to be breaking it. The same occurs for clients reading. If I set mediamtx to disallow publish override then publish starts working, but read still does not.
2024/09/10 13:45:58 INF [SRT] [conn 159.196.xxx.xxx:48962] opened
2024/09/10 13:45:59 INF [SRT] [conn 159.196.xxx.xxx:48962] opened
2024/09/10 13:45:59 INF [path zowie2] closing existing publisher
2024/09/10 13:45:59 INF [SRT] [conn 159.196.xxx.xxx:48962] closed: terminated
2024/09/10 13:45:59 INF [SRT] [conn 159.196.xxx.xxx:48962] opened
2024/09/10 13:45:59 INF [path zowie2] closing existing publisher
2024/09/10 13:45:59 INF [SRT] [conn 159.196.xxx.xxx:48962] closed: terminated
2024/09/10 13:46:01 INF [SRT] [conn 159.196.xxx.xxx:48962] closed: astits: no more packets