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

Fixed bug: listener callback was changing SRTO_GROUPCONNECT option. #1491

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

ethouris
Copy link
Collaborator

@ethouris ethouris commented Aug 19, 2020

Fixes #1490

Problem: the SRTO_GROUPCONNECT option was changed in the listener callback wrapper function basing on the found group extension. This was overwriting the value derived from the listener, and the group interpreter was relying on that value.

Solution: before setting the option, first check if you have group extension, but groupconnect=0. If this is found, reject the connection prematurely, without calling the listener callback.

@ethouris ethouris self-assigned this Aug 19, 2020
@ethouris ethouris requested a review from maxsharabayko August 19, 2020 17:04
@ethouris ethouris added [core] Area: Changes in SRT library core Impact: Significant Priority: High Type: Bug Indicates an unexpected problem or unintended behavior labels Aug 19, 2020
@ethouris ethouris added this to the v1.5.0 - Sprint 21 milestone Aug 19, 2020
…ade premature rejection if groups not allowed.
@maxsharabayko maxsharabayko merged commit 87df928 into Haivision:master Aug 21, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 21, v1.4.2 Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Priority: High Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

listener creates group sockets without SRTO_GROUPCONNECT set
3 participants