Skip to content
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

Incompatibility with newer version of SRT #17

Closed
amunhoz opened this issue Nov 26, 2020 · 2 comments · Fixed by #21
Closed

Incompatibility with newer version of SRT #17

amunhoz opened this issue Nov 26, 2020 · 2 comments · Fixed by #21

Comments

@amunhoz
Copy link

amunhoz commented Nov 26, 2020

It looks like the latest version of SRT is creating a problem with srt_accept, throwing a "bad parameter" error.
Did a test with a new build with the release zip of v1.4.1 and the problem disappeared.

Tested with Ubuntu 18.04 + Nodejs v14

@amunhoz amunhoz changed the title Incompatibility with newer version of SRT from GIT Incompatibility with newer version of SRT Nov 26, 2020
@tchakabam
Copy link
Contributor

Yes, I think this is what issues #16 & #15 are also about! :)

Thanks for the more clear and concise report here on this.

Unfortunately haven't looked into this codebase for a bit, and we didn't have to deal with this issue in our prod case.

@amunhoz You can deal with the current way to just modify the used libSRT git tag in the build script? What do you suggest?

@tchakabam tchakabam mentioned this issue Mar 18, 2021
tchakabam added a commit to emliri/node-srt that referenced this issue Mar 23, 2021
…accept call,

but SRT v1.4.2 is checking for this size to be large enough to write into it
the actual address in the first place. anyhow, wether we read it or not,
it doesn't matter, the allocated size of sockaddr_in is always the same
(per any platform).
@tchakabam
Copy link
Contributor

@amunhoz There is a fix ^

@birme birme closed this as completed in #21 Mar 23, 2021
birme pushed a commit that referenced this issue Mar 23, 2021
… resolve deprecation warning (use srt_create_socket instead srt_socket) (#21)

* fixes #17: we set this 0 since not using their_addr output by accept call,
but SRT v1.4.2 is checking for this size to be large enough to write into it
the actual address in the first place. anyhow, wether we read it or not,
it doesn't matter, the allocated size of sockaddr_in is always the same
(per any platform).

* fix deprecation warning on usage of srt_socket, replaced by srt_create_socket
+ fix newline-chars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants