-
Notifications
You must be signed in to change notification settings - Fork 5
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
"astisrt: Connection setup failure: connection timed out" while connecting for the second time #6
Comments
When I run
Is there anything else I need to do? Without being able to reproduce the issue, it's pretty hard to pinpoint where the problem may be coming from. |
Thanks. If you have a docker-compose you can run
|
I'm using docker compose and |
FYI I had to change
|
OK it seems to be related to
The important part being "after the first connection, it no longer accepts new connections". Since you never seem to close the srt connection, even when webrtc connection closes (on page reload for instance), the second connection gets rejected. If I manually close the srt connection after 5 seconds for instance, reloading the page properly works. You have several options here:
|
Thanks a lot @asticode
I think this is sensible regardless of the server situation, I'll do that.
That was my first attempt, I'll try it again and let you know. |
Weird, it's working locally, what did you have to change? the image source? |
Initially there were 2 parts in the Dockerfile, one that built the |
Thanks a lot @asticode, I'll close this issue! Just out of curiosity:
|
Hi folks 👋 ,
Thanks for the library. I'm not sure if this is an issue or even related to the lib. Anyway, I'm using your library to learn a little bit of srt and web rtc.
A user
inputs information about the SRT
streaming, and the browsercreates an p2p communication
with the server. The serverconnects to the SRT
and reads its stream andsend it back to the web rtc
channel.You can test that right now, it's working. For the first client.
But when I try to connect another browser tab, or even when I try to refresh the current page; it doesn't work, it raises an seemingly time out error.
Just to help you see how the code flows:
I have an hypothesis of unclosed stream, does SRT auto-closes an open stream after the listener stop pulling data? Or have any limitation about number of clients connecting at the same time?
Do you have any idea of why the program is raising an SRT timeout for the second time?
Thanks
The text was updated successfully, but these errors were encountered: