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

[MM-42574] Single handler mode #39

Merged
merged 1 commit into from
Apr 5, 2022
Merged

[MM-42574] Single handler mode #39

merged 1 commit into from
Apr 5, 2022

Conversation

streamer45
Copy link
Collaborator

Summary

PR implements a special single handler mode that allows calls to be hosted on a single instance in a HA cluster through the use of the CALLS_IS_HANDLER=true environment variable. This is how our community installation has been operating so far. The only relevant addition from the community branch is the extra expiry check which is needed to avoid potential issues with the state getting messed up due to the handler node crashing without cleaning up.

Ticket Link

https://mattermost.atlassian.net/browse/MM-42574

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Apr 4, 2022
@streamer45 streamer45 requested a review from cpoile April 4, 2022 17:18
@streamer45 streamer45 self-assigned this Apr 4, 2022
Comment on lines +53 to +55
if unquoted == "" {
return nil
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes an issue when no STUN servers are passed. Instead of an empty slice of strings we were getting a slice with a single empty string which was making connection fail.

Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

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

👍

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Apr 5, 2022
@streamer45 streamer45 merged commit bd9a770 into main Apr 5, 2022
@streamer45 streamer45 deleted the MM-42574 branch April 5, 2022 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants