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

Bugfix: close the crypto under correct conditions #1078

Merged
merged 1 commit into from Jan 21, 2020

Conversation

ethouris
Copy link
Collaborator

@ethouris ethouris commented Jan 21, 2020

During the tests that have been involving closing the socket being members of a group in various unsynchronized conditions it has happened sometimes that a socket was attempted to be closed while it was during the process of closing. Normally all mutexes protecting internal data were preventing any clashes that could result from it. In the case of closing the crypto control object it was happening, however, that one has closed the crypto without having all flags updated, so it was happening that the crypto wasn't closed and therefore deferred the close up to the destructor (which was unwanted in cases when the destruction was called together with the application) or was attempted to be twice destroyed.

The fix has made this destruction relying on the object that represents the real state of existence of the object and attempted in every case when closing was requested.

@ethouris ethouris added Priority: High Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core Impact: Significant labels Jan 21, 2020
@ethouris ethouris added this to the v1.5.0 milestone Jan 21, 2020
@ethouris ethouris self-assigned this Jan 21, 2020
@ethouris ethouris added this to Backlog in Development via automation Jan 21, 2020
Development automation moved this from Backlog to Needs Review Jan 21, 2020
Copy link
Collaborator

@maxsharabayko maxsharabayko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide the reasoning in the description of the PR to be able to remember it in the future.

Development automation moved this from Needs Review to Reviewer Approved Jan 21, 2020
@rndi rndi merged commit c0dcd8b into Haivision:master Jan 21, 2020
Development automation moved this from Reviewer Approved to Done Jan 21, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0, 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
No open projects
Development
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants