-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP streaming support listening at both IPv4 and IPv6 #3701
Comments
We need to refine the endpoint discovering for listening. This technique means allow user listening at IPv4, IPv6, IPv4+IPv6 endpoints. But there are some bugs about this feature. Any patch is welcome. |
srs/trunk/src/app/srs_app_server.cpp Lines 333 to 338 in 427104f
rtmp already supported listen multi endpoints, use SrsMultipleTcpListeners to replace the SrsTcpListener will resolve this issue I guess.Look the differences between SrsMultipleTcpListeners and SrsTcpListener :srs/trunk/src/app/srs_app_server.cpp Lines 574 to 590 in 427104f
The srs/trunk/src/app/srs_app_config.cpp Lines 7641 to 7659 in 427104f
|
@suzp1984 Yep, you are correct. With the multiple listener using a vector of ports, we can fix this issue, while also considering the bellow issues:
We need to support a comprehensive solution about listening. Welcome to file a pullrequest about this feature, at where we can discuss the details. |
Description
Please description your issue here
SRS Version: 6.0.59(Bee) Windows Build
SRS Log:
Replay
Please describe how to replay the bug?
Step 1: Change http_server listen port to the following:
Use network analytics tool, to see SRS listen IPV6 only:
And cannot access srs player or srs console via 127.0.0.1:8080, but from IPV6 can do.
Step 2: Change http_server listen port to the following:
Use network analytics tool, to see SRS listen IPV4 only:
And cannot play http-flv by using address like
http://[ipv6:add:ress::]:8080/live/livestream.flv
, but from IPV4 can do.Step 3: Change http_server listen port to the following:
Use network analytics tool, to see SRS listen IPV6 only:
Expect
We have a demand that getting HTTP-FLV stream from both tcp46, sometimes accessing via IP address only.
To be clear, primary connect from NAT traverse solution like Zerotier, but sometimes it will fail, then we connect SRS using alternative IPV6 Address directly. With the IPV6-only connection, HTTP-server listening at tcp4 won't work.
Throughout our tests, flv.js is the closest approach to real-time playback (except webrtc). When HTTP-server failed to directly connect ipv6 address, we have to use 3rd party player (e.g. VLC) to play RTMP, which will always 0.5s slower than flv.js.
The text was updated successfully, but these errors were encountered: