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

Revert #461 and add a regression test for what it broke. #484

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

OxleyS
Copy link
Contributor

@OxleyS OxleyS commented Mar 19, 2024

While the bug mentioned in #461 was real as of version 0.4.1, it had since been fixed by #418, rendering my fix redundant.

My fix also caused a regression - STUN binding requests received before remote credentials were set were being dropped by IceAgent.accept_message(), instead of being let through and subsequently buffered via IceAgent.stun_server_queue.

Rather than just revert the PR, this also adds a test to catch further regressions of this buffering.

This fixes a bug where STUN binding messages that would have been buffered prior to receiving an answer were instead dropped
Copy link
Owner

@algesten algesten left a comment

Choose a reason for hiding this comment

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

Nice!

Love to have a test for it as well!

@algesten algesten merged commit aeda389 into algesten:main Mar 19, 2024
22 checks passed
@OxleyS OxleyS deleted the accept-buffered-stun branch March 20, 2024 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants