Open kewell-tsao opened 1 year ago
This is essentially due to the DNS resolution blocking, as referenced in https://github.com/ossrs/srs/issues/2112
The version query will only query an SRS API domain, so it will trigger this issue.
In fact, when RTC uses a domain name, if the callback has a domain name, this issue will also occur.
Therefore, the final solution to this problem is to resolve issue #2112.
Temporary Workarounds:
query_latest_version off;
Update: We have disabled the version querying by query_latest_version off
in SRS 5+, see ee6a68d24ca165d917b26414a4168d265363d9d1 and 84b184dd5309096f9df97967af878ecd7cb36da6
Description
SRS Version: v4.0-r4
SRS Log:
Replay
Please describe how to replay the bug?
Step 1: Set up an SRS server using Docker according to the documentation, with no external network connection in the local area network.
Step 2: Use OBS to push RTMP stream, and play it using Chrome WebRTC Player. The video is normal.
Step 3: Wait for about 10~50 minutes, the video playback in Chrome gets stuck, and SRS logs the above information. OBS streaming is normal.
Control Test 1: Restore external network connection in the local area network, and repeat Step 2 without any abnormalities.
Control Test 2: Disconnect external network connection in the local area network, add the configuration line
query_latest_version off;
, and repeat Step 2 without any abnormalities.Expect
The version query feature #2424 should not have any impact on the main business under any circumstances.